comp.lang.ada
 help / color / mirror / Atom feed
* Sequential???
@ 1999-01-23  0:00 JoeLngstn
  1999-01-23  0:00 ` Sequential??? Matthew Heaney
  0 siblings, 1 reply; 4+ messages in thread
From: JoeLngstn @ 1999-01-23  0:00 UTC (permalink / raw)


My college Ada professor recently showed us some simple examples of string
handling in which we used ada.text_io.get_line to get both the string and its
length. We did this twice, once for first name, and again for last. We had a
put procedure directly under the code where we got the last name that would
display the length of the first name. (The first name was declared as
string(1..10)) When the length of the first name was equal to ten, it would
display that value before prompting for the last name, in effect, running the
program out of order. Can anyone explain?

If needed I will supply an example of source code that causes this.


-Joey 




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-01-29  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-01-23  0:00 Sequential??? JoeLngstn
1999-01-23  0:00 ` Sequential??? Matthew Heaney
1999-01-23  0:00   ` Sequential??? Tucker Taft
1999-01-29  0:00   ` Sequential??? JoeLngstn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox