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:01

if you want to learn Ada, I recommend starting out with the interactive Ada Tutor as there are no easy Ada books out
http://www.adatutor.com/

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