I just started learning c++ last night, so please dont get too mad at my ignorence or if this is a previously asked question:
Using the bloodshed dev c++ compiler, whenever i attempt to create a dos program that involves a user imputing a variable to the program (i.e.
#include <iostream.h>
int main()
{
int thisisanumber;
cout<<"Please enter a number:";
cin>>thisisanumber;
cout<<"You entered: "<<thisisanumber;
return 0;
}
) the program always closes after the imput is entered, even when i place cin.get(); before return 0;. How can i make the output window remain and get it to display the appropreate responce? Thanks in advance for any help.