Visual C++ 2005 - I'm not sure how to run my program, can someone help?

I am trying to learn C++.

I installed Visual C++ 2005, and I'm not used to the way it looks or handles.

Can someone show me, step by step, how to open a project, write a simple 'hello world' program, and execute it

i know how to do this with older versions of visual c++, but this one really got me.

thanks all

I apprecite it.



Answer this question

Visual C++ 2005 - I'm not sure how to run my program, can someone help?

  • MichaelSh

    1) Create an empty console project.

    2) Add a new C++ file to your project

    3) Add your source code there.

    4) To build, go to the build tab in the menu and choose to build.

    For more details, look at the msdn.microsoft.com help.

    Thanks,
    Ayman Shoukry
    VC++ Team


  • Chuck Leonard

    Thank for your reply, it was really helpful.

    However, it doesnt show me how to create a simple 'hello world' program.

    Ayman, do you think you can lead me through, without the wizard on

    thank you!


  • briandra3

    Take a look at http://msdn2.microsoft.com/en-us/library/6765tta0.aspx describing the different projects and links to how to create such projects.

    Thanks,
    Ayman Shoukry
    VC++ Team


  • bradrum

    hey, that was helpful

    i appreciate it!

    thanks!


  • corestar

    You don't have to use the stdafx.h.

    Also, take a look at the following previous post that contains other good links

    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=79104&SiteID=1

    Thanks,
    Ayman Shoukry
    VC++ Team


  • thezman

    can i use the standard #include <iostream.h> library when compiling

    what is #include "stdafx.h" , i'm really not familiar with this.

    i just want to run a simple hello world like:

    ----
    #include <iostream.h>
    
    main()
    {
      for(;;)
      {
        cout << "Hello World! ";
      }}

    ---

    its not compiling. am i doing anything wrong when picking my section should i pick general or window console or

    thanks.



  • Visual C++ 2005 - I'm not sure how to run my program, can someone help?