From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1d2825e3bbbe82fb X-Google-Attributes: gid103376,public From: amolthan@cdsnet.net (BlacKnight) Subject: Re: Need help bad!!!!! Date: 1996/10/28 Message-ID: <551qp1$3db@news.cdsnet.net>#1/1 X-Deja-AN: 192659661 references: <54u8m2$ko1@news.cdsnet.net> content-type: Text/Plain; charset=US-ASCII organization: CDS Internet, Medford Oregon mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-10-28T00:00:00+00:00 List-Id: In response to the help that I recieved here, thank you it is much appreciated for the diversment in ways to look at the problem I had. To these comments about helping students and reading the LRM and reference manual: Due to my teacher's lack of availability and the few people that I can find on campus that know ada, my resources here are not very exstenive. I use them when I can but they are rarely available. I did look through the LRM, the reference manual, the Rationale and numerous tutorials. I don't have the money to buy a manual on Ada. In the end the solution was simple, I should have seen it earlier. I did spend 8 - 9 hours working around the problem, the longer I worked on it, the farther away from the solution I got until I was utterly lost and frustrated. That is why I posted a request for help in this newsgroup. My apologies to those who found my request unfounded and irritable. In article <54u8m2$ko1@news.cdsnet.net>, amolthan@cdsnet.net says... > >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 >