1. google search for download visual c++ 2010
2. download visual c++ 2010
it will take about 20 minutes.
3. after that go to start --> all programs-->Microsoft Visual Studio 2010 -->( with an icon of lying oo in front of this) Microsoft Visual Studio 2010
A window will open up finally.
Select under the File menu--new---> File
Select Visual C++ among the installed templates and c++ File(.cpp) in the menu which will come in the center of the newly opened window after you selct Visual C++ in the list of installed tempaltes at the right.
It will open up a Source1. cpp, you can start writing your program under Source1.cpp tab
// my first program in C++
#include
using namespace std;
int main ()
{
cout << "Hello World!";
return 0;
}
Above is a sample program
After you are done with your program.
You need to compile your program and then run it. Steps for compiling and running the program are in my next blog
No comments:
Post a Comment