|
Subject:
|
help in compiling with dev c++ 4.9.9.2
|
|
Posted By:
|
Shadowfire
|
Post Date:
|
3/25/2008 10:08:13 PM
|
hi guys I'm a real beginner at programing and just programmed "Hello world" with dev c++. I had to switch to Dev as Borland wasn't working for me. now I cont get the hello world program to open!It compiled OK with 0 errors but it just dosen't open when I double click the .exe file.(opens fine then I cal it with command prompt.)
what should I do to get the exe file to open with out calling it with command prompt?
I really need to get started with programming. so some one please please help me!!!!! thanks!
|
|
Reply By:
|
SilentFallen
|
Reply Date:
|
4/20/2008 5:19:53 PM
|
From what i gather you made a program like this one:
// Hello World #include <iostream> using namespace std; int main() { cout<< "Hello World"; << endl; return 0; }
you need to replace the: return 0; with something like: system("PAUSE"); return EXIT_SUCCESS;
I am also new at C++.. i have been going threw Ivor Horton's Beginning C++ book.. its not mentioned in there at the beginning when you make simple programs like this... i got it from when you make a new project in Dev-C++ 4.9.9.2 it automatically adds some lines of code that you would normally delete and start from the blank slate..
|