int input

Steven Schveighoffer schveiguy at yahoo.com
Wed Sep 10 11:50:36 PDT 2008


"Rayne" 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.

use din from std.cstream:

din.read(myint);
-or-
din.readf("%d", &myint);

-Steve 





More information about the Digitalmars-d mailing list