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: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Need help bad!!!!! Date: 1996/10/27 Message-ID: #1/1 X-Deja-AN: 192495371 references: <54u8m2$ko1@news.cdsnet.net> organization: New York University newsgroups: comp.lang.ada Date: 1996-10-27T00:00:00+00:00 List-Id: iAlex said " 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" This procedure is totally bogus in Ada, assuming you are using Text_IO. You can't write C code in Ada this diretly, unless you call the real C routines using pragma Interface, which probably would work. You need to study (from almost any text book) how Text_IO is defined and works. You probably wanyt to look at how Get_Line works.