readln() doesn't stop to read the input.

jonaspm via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 26 21:37:33 PDT 2015


Please, i need your help, I tried this:

write("Write p: ");
readln(p);
p = chomp(p);
writeln("Write q: ");
readln(q);
q = chomp(q);

but the result is:
Write p: Write q:

and doesn't pause to read keyboard input... what's wrong?

Thanks in advance!


More information about the Digitalmars-d mailing list