comp.lang.ada
 help / color / mirror / Atom feed
* Need help bad!!!!!
@ 1996-10-27  0:00 BlacKnight
  1996-10-27  0:00 ` Robert Dewar
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: BlacKnight @ 1996-10-27  0:00 UTC (permalink / raw)



This is going to sound really stupid, and I'm extremely frustrated because I 
know there has to be a simple answer to this:

	I have a linked list lab I've been working on for college. I've gotten 
the sort, etc working, except for 3 procedures that depend on this problem I'm 
having. I need to have the user input a name (name : string(1..20);) to do one 
of 3 options, add a record, display a records info, or delete the record. I've 
been reading the input a character at a time and using an if condition to check 
for Ascii.LF so the program can take whats entered and store it in name, and 
then continue with the option selected. I can't get the program to accept any 
type of carriage return, it always wants 20 characters no matter what. So the 
user has to hit the space bar after entering the name until 20 cells in the 
string are filled. I've tried unbounded_strings, ascii values, comparisons, 
conditions, get_line(), get(), even dropped the code for get_line out of 
gnat.io. None of this works. If anyone has some help, please post or email me 
at : amolthan@cdsnet.net

Thanks alot,
Alex





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

end of thread, other threads:[~1996-11-04  0:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-10-27  0:00 Need help bad!!!!! BlacKnight
1996-10-27  0:00 ` Robert Dewar
1996-10-27  0:00 ` David C. Hoos, Sr.
1996-10-27  0:00   ` Robert Dewar
1996-10-27  0:00     ` Textbooks vs. Reference Manuals (was: Need help bad!!!!! (sic)) Larry Kilgallen
1996-10-28  0:00       ` Stephen Leake
1996-10-28  0:00       ` Robert Dewar
1996-10-27  0:00 ` Need help bad!!!!! Larry Kilgallen
1996-10-28  0:00 ` BlacKnight
1996-11-04  0:00   ` Robert Dewar

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