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:
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:
Then on the Solution Explorer (at the left side) right click on Source Files and select Add >> New Item...
Select C++ File (.cpp), name it whatever you want (I will call it main) , then click Add
And this is it, now just expand the Source Files folder and double click on your file (what I`we called main) and start coding !
Don`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 the video tutorial, too:
Check out the original post: C++ Lesson 2 - Set up Visual C++
Last edited by Roger; 08-19-2010 at 11:26 AM.
I already knew this...
Well this is for the people that don't know how to do this? And Thanks!
Last edited by CuzImAwesome; 10-21-2010 at 10:38 PM.
If Someone is In Ubuntu, There are tutorial how to run programms width console. Or you could download Eclipse C++, I think, that's very good proggram.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks