Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Ada Syntax

Name: Ada newbie 2010-10-05 19:54

sup /prog/.

Just one question. How do I assign a value to an unbounded string via the get command?

example:

procedure blabla is
type car is record
name : unbounded_string;
...
end record;
begin
put ("bla");
get (car.name); <---- error
end blabla;

libraries used: Ada.Text_IO, Ada.Integer_Text_IO, Ada.Strings, Ada.Strings.Unbounded, Ada.Strings.Unbounded.Text_IO

no candidate interpretations match the actuals:
missing argument for parameter "item" in call to "get" declared at ...

I hope this is specific enough so somebody that knows the language can solve my problem in a second.

I simply can't find an extensive but simple syntax guide for ada on the web, the ones I find always miss that one problem I have....

Name: Anonymous 2010-10-05 20:03

>>3
I'm learning it atm. I was in 2 short lectures that covered the basics and I've read loads of tutorials. The problem is that none of them seems to cover the case I described in the OP.

Thanks tho.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List