Re: STRING length
markww wrote:
type MY_RECORD is
record
m_strName : STRING(1..5);
m_strPhone : STRING(1..5);
m_strAddress : STRING(1..5);
end record;
String is a 1D array type, and all 1D array objects in Ada have a fixed
length.
This is pretty basic Ada. I'd suggest you work through one of the
tutorials at adapower.com or adaworld.com, and perhaps look at some of
the on-line textbooks before proceeding.
--
Jeff Carter
"Help! Help! I'm being repressed!"
Monty Python & the Holy Grail
67
.
Relevant Pages
- Re: [OT] Re: Teaching new tricks to an old dog (C++ -->Ada)
... >> All this can be done in Ada. ... The program declares a string S initialized to "This is a text message". ... It then declares an array type named Bits_Array. ... (comp.lang.cpp) - Re: [OT] Re: Teaching new tricks to an old dog (C++ -->Ada)
... >> All this can be done in Ada. ... The program declares a string S initialized to "This is a text message". ... It then declares an array type named Bits_Array. ... (comp.lang.ada) - Re: The future of Ada is at risk
... working under Mac OS X. ... People should have the opportunity to "give Ada a spin" free of charge, ... I don't see how simple but powerful string handling ... I think that the default string type should be the unbounded string, ... (comp.lang.ada) - Re: How come Ada isnt more popular?
... Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm ... Perhaps if the central string were a number? ... But when I compare a book on expert systems written in C and one written in Ada (well, Ada83), the book in Ada is both thicker and has more pages devoted to code than the book in C, and the expert systems are approximately of equivalent power. ... (comp.lang.ada) - Re: Teaching new tricks to an old dog (C++ -->Ada)
... In Ada I could use Ada.Strings.Bounded_Strings ... not at all convinced that two separate string classes are necessary to ... allocator that only ever allocates a block of the initially-specified ... And thead save means that an exception may be ... (comp.lang.ada) |
|