Slightly Confused..

I did some C++ programming a while back but i need to refresh my memory so i go from the basic to the advanced as you do.
I downloaded Visual Studio C++ (express edition) and created a very basic program with user input but each time i go to debug it and enter something it thinks i entered it multiple times.

1
2
3
4
5
6
7
8
	int i, confirm;
	cout<<"Hello World"<<endl;
	cin>>i;
	cout<<"\n\nPlease select your preference"<<endl;
	cin>>confirm;
	cout<<"\nYes?"<<endl;
	cin>>confirm;
	cout<<"Pew";


I have all iostream and using namespace std;, but when i debug it thinks i give it an input almost instantly and skips to the end of the program with just 1 input.
I did CTRL=F5 and that ran it fine im just wondering why it just ends so abruptly during the normal debugging process.
The code works fine. Chances are that you typed in something else than a number or numbers with spaces.
Yeah i somehow just had a blank mind for a few mins, sorry about this topic.
Went through a blank phase..
Topic archived. No new replies allowed.