   Another C++ newbie
  I know, I''m dumb... If anyone uses Dev-C++ to compile their programs, maybe you can help me.I am using a tutorial to help me learn C++, and I put a sample program in to test it, "hello world". When I compile it, it says it has compiled succesfully.. however when I try to run it nothing comes up. No window, nothing.Here is the source:// my second program in C++#include <iostream.h>int main (){  cout << "Hello World! ";  cout << "I''m a C++ program";  return 0;}Thanks 
  How old is the compiler?  Is it relatively new?  Try this: #include <iostream>   // notice that there is no .h  // new standard...using namespace std;  // include this line...you'll find  // out why later onint main(){    cout << "Hello world.\n";    cout << "I am a C++ program.\n";    return 0;}Edit# 1: Make sure you are in Debug mode and not Release...not sure how to do this on Dev-C++, but it should have a debug mode; on my compiler I just press ctrl+F5 to get it to build in debug mode....Dan...   [edited by - xdanillumx on February 12, 2004 6:11:31 PM];  Your problem is that, return 0; tells the program to close the window and say there were no errors. It is hard to get DevC++ to stay open, I recommend switching to Mircosoft Visual C++  since you don''t need to end it cause it automatically puts a press any key to continue thing.But, to keep DevC++ open(I started on it), you could enter (as the script)// my second program in C++#include <iostream.h>int main (){cout << "Hello World! " << endl;cout << "I''m a C++ program" << endl;cout << "Press Any Key To Continue";}This should work. ;  Yet again, it didn''t work.. sorry to bug you guys.. ;#include <iostream>#include <stdlib.h>using namespace std;int main(int argc, char *argv[]){  cout << "Hello world!" << end.  system("PAUSE"); // adds "Press any key to continue..."  return 0;} "You're not supposed to be so blind with patriotism that you can't face reality. Wrong is wrong no matter who does it or who says it." -- Malcom X    [edited by - Mscgamer on February 12, 2004 6:18:07 PM];quote:Original post by DarkOneEntertainment   cout << "Press Any Key To Continue";This line would just print another string then it would exit...if you want your program to actually pause, you could use the above example, but you would have to assign the key press to a varialbe or call the "get()" function.  For now, if what I told you didn't work, just type the following before you type return 0; system("pause");return 0;Dan...   [edited by - xdanillumx on February 12, 2004 6:18:13 PM];  Or simply put: system("PAUSE"); before your return 0; line. ;  Thank you, it worked  ;  Is it    pause or PAUSE? ;  Oh right, dang, sorry, I haven''t used DevC++ for such a long time... 