I'm having trouble making a simple 'Hello World' screen output in C++, in Code Blocks. The problem arises when I try to compile and run the code. When the code has been compiled and a console window appears, the only visible text is the following:
Process returned 1988768175 (0x768A31AF) execution time : 0.641 s Press any key to continue
The program terminates before I'm able to see it. I've been searching for a while now, and I haven't been able to locate what causes this. I'm using Code Block 13.12 with default settings on Windows 8.1 x64, and my code is a follows.
#include <iostream>
using namespace std;
int main()
{
cout << "Hello";
return 0;
}