Problem with using readln.

JV via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 29 20:20:20 PDT 2017


On Sunday, 30 April 2017 at 03:18:04 UTC, Adam D. Ruppe wrote:
> On Sunday, 30 April 2017 at 03:10:25 UTC, JV wrote:
>> btw i forgot to add () at readln while editing the post
>
> That's not necessary, it doesn't change anything.
>
> But readln without arguments returns a string, not an int.

okay?? but how do i return an int?
tried using what i found in the internet like using stdio.conv; 
to use toInt() but still shows error


More information about the Digitalmars-d-learn mailing list