Introducing with Microsoft visual C++ software development
Environment
Instructor: Professor Brian J. d'Auriol, Ph.D.TA: Rossi Kamal
Course: Advanced Object Oriented Programming
September, 2011
1
How to open Microsoft visual studio?
• Click on start menu• choose All Programs from the
popup menu, • then choose Microsoft Visual
Studio
2
Environment for visual C++
3
How to create a project? (Step-1)
4
Select new then click on project
How to create a project? (Step-2)
Select this
Put file name 5
GettingStartedOOP
GettingStartedOOP
Project environment
6
Project
Name
Project
NameHeader FilesHeader Files
Source FilesSource Files
Automatically Created By Visual Studio 2010
Replace it with int main()
insert #include<iostream>using namespace std;
How to create a file? (Step-1)
Select source
7
How to create a file? (Step-2)
Put file name
8
MyAPP
How to create a file? (Step-3)
9
How to create a file? (Step-4)
10
How to compile and execute?
• Compile:CTRL+F7
• Executing: CTRL+F5
11
Output
Output
12
How to Add multiple .h file (step-1)
Select Header file
13
All .h files are placed in Header Files
All .h files are placed in Header Files
How to Add multiple .h file (step-2)
Select .h file
Put file name
14
MyHeader
How to add multiple .cpp file (step-1)
15
Select Source Files
All .cpp files are placed in Source Files
All .cpp files are placed in Source Files
How to add multiple .cpp file (step-2)
16
Select C++
File(.cpp)
Insert File Name
HelperApp
How to open existing project? (step-1)
17
Select Open
Then Click Project/ Solution
How to open existing project? (step-2)
18
How to open existing project? (step-3)
19
Project environment
20
Project
Name
Project
NameHeader FilesHeader Files
Source FilesSource Files