int input

Rayne DiscipleRayne at gmail.com
Wed Sep 10 12:46:17 PDT 2008


Steven Schveighoffer Wrote:

> "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 
> 
> 
Awesome, thanks bro, I never thought to look in that namespace x_x.




More information about the Digitalmars-d mailing list