i have recently decided to try learning some basics of c++ programming using "cplusplus.com" tutorials.
however when i try to run "hello world!.cpp" in dev c++ it stops executing the file instantly.
here is the compile log
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Users\Josh\Documents\hello.cpp" -o "C:\Users\Josh\Documents\hello.exe" -ansi -traditional-cpp -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
and the source code is
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
return 0 ;
}
am i doing something wrong? i am a total noob at this so it probably obvious to anyone who knows this stuff but any help would be much appreciated
however when i try to run "hello world!.cpp" in dev c++ it stops executing the file instantly.
here is the compile log
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Users\Josh\Documents\hello.cpp" -o "C:\Users\Josh\Documents\hello.exe" -ansi -traditional-cpp -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
and the source code is
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
return 0 ;
}
am i doing something wrong? i am a total noob at this so it probably obvious to anyone who knows this stuff but any help would be much appreciated