Problem with using readln.

JV via Digitalmars-d-learn digitalmars-d-learn at
Sat Apr 29 20:10:25 PDT 2017

On Sunday, 30 April 2017 at 03:04:49 UTC, Adam D. Ruppe wrote:
> 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?

umm im using code blocks so far it compiled and runs i don't know 
btw i forgot to add () at readln while editing the post

More information about the Digitalmars-d-learn mailing list