Menu

Can't compile my first program.

jake
2007-09-29
2012-09-26
  • jake

    jake - 2007-09-29

    I have no idea why this isn't working, I followed the tut on this website and trying to compile but when I compile and then run NOTHING happens. Here is my code (between [--]) :

    [-------------------------------]

    // my first program in c++

    include <iostream>

    using namespace std;

    int main()
    {
    cout <<"Why say hello world everytime I start a new code???";
    cin.get();
    return 0;
    }

    [-------------------------------]

     
    • Wayne Keen

      Wayne Keen - 2007-09-29

      Please post the rest of your "Basic 3" - they are covered in the thread titled
      "Please Read Before Posting a Question"

      Wayne

       
      • Wayne Keen

        Wayne Keen - 2007-09-29

        And yes, I realize that this is a run time issue. The compile log
        helps in some cases for those.

        For example, if you compiled this console application as a Windows
        application, there will be nothing that is printed in the console.

        Your compile log will tell me that. So please get used to posting
        your Basic 3.

        Wayne

         

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.