Problem with using readln.

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 29 20:04:49 PDT 2017


On Sunday, 30 April 2017 at 02:07:48 UTC, JV wrote:
>     int func;
> writeln("\t\tEnter Selection : ");
>     func = readln;
>     writeln(func);

That shouldn't even compile... are you sure that's your actual 
code, and that it is actually building successfully?



More information about the Digitalmars-d-learn mailing list