// my first program in C++
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
return 0;
}
When I compile and run it, everything is fine, but it does not show it to me. It compiles it, a DOS window pops up and closes immiedetly after, and I can not see it.
Help? o.O
Hmm, think I found the problem, now I need to find the soloution. I went into compile log and found this.
Compiler: Default compiler
Compiler: Default compiler
Executing g++.exe...
g++.exe "H:\programs\Untitled1.cpp" -o "H:\programs\Untitled1.exe" -g3 -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" -g3
Execution terminated
Compilation successful
Ok, the dos stays open now and that is what my program is in, how do I get it to stay up now and not auto-exit.
Edited by nick_mi, 17 November 2005 - 10:55 AM.