Hi guys, after learning that MingW is newer than Cygwin, I immediately switched over to MinGW and deleted my Cygwin file.
I have added the MinGW directory into my Path Variable and also separately downloaded the MSYS which contains the make.exe program. Everything seems fine... until when I ran the program, it won't accept input. Have a look at my code;

int num;
cout<<"Enter number: ";
cin>>num;
_________
run:
Enter number:
_________
THe cursor(that usually blinks for input) does not blink. When I enter any number it won't accept it. THe only time it will do something is when the extraction stream object (cin) enters the fail state (i.e., entering a non-numeric data). When it enters the fail state it just goes...

Run Successful...

What is going on? Any idea?

At Msys bash prompt, type export <enter>
Cut and paste your environment variables here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.