Say this is my code:
When it says Please enter a number, how do I enter it? Say I put in a 1, then what do I press? If I press enter, the program will close... How do I fix it? Do I press something else? :confused:Code:#include <iostream.h>
int main()
{
int x;
cout<<"Please enter a number: ";
cin>>x;
cout<<"You entered: "<<x;
return 0;
}
I'm compiling with Dev-C++...
Needing Help,
SirCrono6