Visual Studio

S.M.Abdullah, Lecturer, CSE, UIU 1 Step by Step Visual Studio 2008 Installation & Your First Hello World Project This t...

0 downloads 241 Views 1005KB Size
S.M.Abdullah, Lecturer, CSE, UIU 1

Step by Step Visual Studio 2008 Installation & Your First Hello World Project This tutorial is for those who want to install ‘Visual Studio 2008’ for C++ and try to build their first project. I will give screenshots & examples how to do it. Step 1: Collect Visual Studio 2008; go to the folder & click ‘setup.exe’

Step 2: Click on ‘Install Visual Studio 2008’

S.M.Abdullah, Lecturer, CSE, UIU 2

Step 3: On the next window click ‘Next >’

Step 4: Click ‘I have read and accept the license terms.’ Give your name in the name section.

S.M.Abdullah, Lecturer, CSE, UIU 3

Step 5: Click ‘Custom’ & ‘Next >’

’ Step 6: Select only Visual C++ and press Install & waits until installation complete.

S.M.Abdullah, Lecturer, CSE, UIU 4

Step 7: After Installation click on Microsoft Visual Studio 2008 from the start menu.

Step 8: To create a new project click File -> New -> Project

S.M.Abdullah, Lecturer, CSE, UIU 5

Step 9: Select General Project types from Visual C++, select Empty Project from templates section, give a name of your project & select OK.

Step 10: From the Solution Explorer, Right click on Source Files -> Add -> New Item. If Solution Explorer is not visible, click on View -> Solution Explorer.

S.M.Abdullah, Lecturer, CSE, UIU 6

Step 11: Select C++ File (.cpp) & give a name of your program.

Step 12: Write your code, to compile your code press Ctrl+F7, an output window will display it will show if there are any errors or warnings in your code. If error exits it will show the line number and the error type.

Step 13: To run the code press Ctrl+F5, it will display a black command window with your output.

S.M.Abdullah, Lecturer, CSE, UIU 7

Step 14: If you want to insert another code (.cpp file) in your project, first exclude the current cpp file from your project & add a new or existing code.

That’s all about Visual Studio installation & how to build your first project.