1. Download and install latest Visual Studio Community

  2. Open Visual Studio Community

  3. Click File -> New -> Project

    http://i.stack.imgur.com/bFNzb.png

  4. Click Templates -> Visual C++ -> Win32 Console Application and then name the project MyFirstProgram.

    http://i.stack.imgur.com/kYTy1.png

  5. Click Ok

  6. Click Next in the following window.

    http://i.stack.imgur.com/Rebpz.png

  7. Check the Empty project box and then click Finish:

    http://i.stack.imgur.com/P0P5J.png

  8. Right click on folder Source File then -> Add –> New Item :

    http://i.stack.imgur.com/DLwEd.png

  9. Select C++ File and name the file main.cpp, then click Add: 10: Copy and paste the following code in the new file main.cpp:

    http://i.stack.imgur.com/zQaws.png

    #include <iostream>
    
    int main()
    {
        std::cout << "Hello World!\\n";
        return 0;
    }
    

    You environment should look like:

    http://i.stack.imgur.com/vTBkv.png

  10. Click Debug -> Start Without Debugging (or press ctrl + F5) :

    http://i.stack.imgur.com/B3twO.png

  11. Done. You should get the following console output :

    http://i.stack.imgur.com/1AwnS.png