On Friday, 27 March 2015 at 05:17:03 UTC, jonaspm wrote:
but readln(p); isn't supposed to read input and store it into p?
Nope. Parameter is terminator character. Read string is returned from the function. So, it would be like:
string p = readln();
On Friday, 27 March 2015 at 05:17:03 UTC, jonaspm wrote:
but readln(p); isn't supposed to read input and store it into p?
Nope. Parameter is terminator character. Read string is returned from the function. So, it would be like:
string p = readln();