Why cin.get(); command doesn't work in Win7?

#include "stdafx.h"
#include <iostream>

using namespace std;

int main(){

cout << "Hello world!";
cin.get();

return 0;
}

When I run programm(console application) it just flashes
And the output which I get from Microsoft Visual 2010 C++ express IS :

'Tutorial1.exe': Loaded 'C:\Users\Admin\Documents\Visual Studio 2010\Projects\Tutorial1\Debug\Tutorial1.exe', Symbols loaded.

'Tutorial1.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file

'Tutorial1.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file

'Tutorial1.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file

'Tutorial1.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.

'Tutorial1.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.

The program '[5716] Tutorial1.exe: Native' has exited with code 0 (0x0).

So why the conosle window just flashes and closes ?
Last edited on
In MS Visual use Ctrl + F5 to run without debuging !
Topic archived. No new replies allowed.