Thursday, May 20, 2010

How to start A C++ Program in Visual Studio

Follow these instructions to get started with a C++ project in Visual Studio. We will begin with an empty Console project. This allows the best approximation of ANSI C++

1.Start Visual Studio
2.Go to FILE/ NEW PROJECT
3.Choose OTHER LANGUAGES/C++
4.Choose “WIN32 Console Application”
5.Give the solution a name click Next
6.The Win32 Application Wizard opens
7.Click Application Settings
8.Leave application type Console Application
9.Under additional options choose empty Project
10.Click finish
11.. Click Solution Explorer—you should see three folders
12.Right click source files and click ADD
13.ADD NEW ITEM
14.Choose C++ FILE (.cpp)
15.Give it a Name
16.Click ADD
17.In the code put

#include <iostream>
using namespace std;

int main()
{
}

Now you are ready to start

No comments:

Post a Comment