1. Download and install Visual Studio Community 2015
  2. Open Visual Studio Community
  3. Click File -> New -> Project

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/0a9391fa-7bbd-45a6-9860-5311e71e7162/Untitled.png

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

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/cd790337-a973-46d2-955e-cfd023c8126a/Untitled.png

  1. Click Ok
  2. Click Next in the following window.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/454f8f86-13c5-441d-8f2e-151a27877c78/Untitled.png

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

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/0de0e8b9-cacc-44a7-bc0d-7527cbf97abc/Untitled.png

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

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/7d01c58c-4ad9-4a34-9343-06caf9458d7d/Untitled.png

  1. 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:

    https://s3-us-west-2.amazonaws.com/secure.notion-static.com/aeca7266-432a-4bee-98c0-ee1798530eb6/Untitled.png

#include <iostream>

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

You environment should look like:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e447a158-d9dd-4a29-856d-d2dda2a1f7c7/Untitled.png

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

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/40485c47-609c-4528-9281-513ee6d7ece5/Untitled.png

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