Thursday, December 1, 2011

Write Your First C++ Program and Compile it Using Microsoft Visual C++

A simple C++ "Hello World" program consists of several lines of code.Many of those lines are included in each and every C++ program.The first line consists of inclusion of a header file that lets us use all basic commands.Then we create our main function and inside main function we write our body.We use a standard output stream command to output our text.The steps for writing your first program are as follows:-
1.Install Microsoft Visual C++ 2010 Express 
2.Create a new project. 
3.Add a new file.
4.Write the simplest C++ code for a "hello world" program.
5.Debug it.

No comments:

Post a Comment

Your Comment Here!!