Menu

Compiling error

2002-11-30
2012-09-26
  • daniel walker

    daniel walker - 2002-11-30

    i write a simple program e.g

    #include <iostream.h>

    int main()

    {

      cout<<"HEY, you, I'm alive!  Oh, and Hello World!";

      return 0;   

    }

    then i click compile& run....nothing compile then run and it tells me that its not yet compiled. when i compile it gives me an error at the bottom:
    line:2  unit:C:\dev-cpp\2  message: unable to run program file... tell me what to do from beginning to end plzzzzz thankyou

     
    • Anonymous

      Anonymous - 2002-12-03

                                    
                          // this way works for me.
                                      #include <iostream.h>
                                      #include<cstdlib>
                                      using namespace std;

                                      int main()

                                      {

                                      cout<<"HEY, you, I'm alive! Oh, and Hello World!\n";
                                     
                                      system("pause");
                                      return 0;

                                      }

       
    • Patrick Ogay

      Patrick Ogay - 2002-12-26

      compiler path is wrong, it' does'nt compile at all  /pat

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.