int input

Rayne DiscipleRayne at gmail.com
Wed Sep 10 11:38:10 PDT 2008


Denis Koroskin Wrote:

> On Wed, 10 Sep 2008 08:09:00 +0400, Rayne <DiscipleRayne at gmail.com> wrote:
> 
> > I was wondering, since you can't cast readln, how would you get int  
> > input from the user? I know this is a newbish question, but yeah I'm not  
> > sure.
> 
> Maybe you need this:
> 
> int i;
> read(i); // read an integer from console

That doesnt work.




More information about the Digitalmars-d mailing list