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

2015-03-26 Thread jonaspm via Digitalmars-d
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!

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

2015-03-26 Thread jonaspm via Digitalmars-d
but readln(p); isn't supposed to read input and store it into p?

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

2015-03-27 Thread jonaspm via Digitalmars-d
module main; import std.stdio; import std.string; int main(string[] args) { int resp; char[] p, q; writefln("MENU DE OPCIONES"); writefln("1) Modus Ponens"); writefln("2) Modus Tollens"); writefln("3) Silogismo Hipotetico"); writefln("4) Salir"); do{

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

2015-03-30 Thread jonaspm via Digitalmars-d
I see... thanks to everyone for helping me out!