Go back to surfing session

C++ Lesson 2 - Set up Visual C++

Thursday, June 10, 2010

This lesson is about setting up Visual C++ for a console application. Console applications are the easiest C++ program so this is the best way to start.

First it`s good to create a folder for your projects (anywhere you want), then go to:
File >> New >> Project... and select Win32 Console Application:

Set up Visual C++At the bottom give a name for your project, same as the solution name. At the location browse and select your projects folder to place the new project in.

Then click Ok, then next (NOT finish), and check in the Empty project checkbox:Set up Visual C++Then on the Solution Explorer (at the left side) right click on Source Files and select Add >> New Item...Set up Visual C++ consoleSelect C++ File (.cpp), name it whatever you want (I will call it main) , then click AddC++ Set up add itemAnd this is it, now just expand the Source Files folder and double click on your file (what I`we called main) and start coding !Setting up Visual c++ readyDon`t forget to save your project (go to File >> Save all or press Ctrl + Shift + S).
To debug and start your program press F5, for sure when you will write one.

Check out my video about this lesson: How to set up Visual C++ for a Console Application

Next lesson: C++ Lesson 3 - Hello world
Previous lesson: C++ Lesson 1 - Introducing

1 comments:

Thanks for the tutorial. Even though I learned this before, it's been a while so this is a nice reminder.

Post a Comment