int input

Denis Koroskin 2korden at gmail.com
Wed Sep 10 02:34:36 PDT 2008


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



More information about the Digitalmars-d mailing list