comp.lang.ada
 help / color / mirror / Atom feed
From: "F" <phosphorus@libero.it>
Subject: a little help
Date: Tue, 16 Oct 2001 10:39:14 +0200
Date: 2001-10-16T10:39:14+02:00	[thread overview]
Message-ID: <9qgrgh$1f10$1@newsreader1.mclink.it> (raw)

Hello world,
          i'm trying to learn Ada but i've a lot of problems with the
operations with strings.
In particular i've a procedure for the input:

type st is new string;
procedure leggis (j: in out st) is
       c:character;

    begin
           while not end_of_line loop
        get(c); b(ind):=c; ind:=ind+1;
           end loop;
    end leggis;


when i call the first time this procedure i obtain the input string but the
second time nothing happens.....
I think that character return remains in the keyboard buffer, how can I
resolve this problem?????

Excuse me for the scarce clarity of my english.......
Thank you!  :-))





             reply	other threads:[~2001-10-16  8:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-16  8:39 F [this message]
2001-10-16  9:50 ` a little help Gerhard Häring
2001-10-16 12:23   ` F
2001-10-16 15:47     ` Gerhard Häring
2001-10-16 15:46   ` Martin Dowie
2001-10-16 15:29 ` Ted Dennison
2001-10-17  7:11   ` F
2001-10-17 14:26     ` Ted Dennison
2001-10-17 10:00 ` Preben Randhol
replies disabled

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