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....
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....