introduction to Visual Cpp
introduction to Visual Cpp
Visual C++ is a tool created by Microsoft to make writing, compiling and debugging C++ source code
easier. Visual C++ is an Integrated Development Environment (IDE).
To get started on your first program, you must create a "project" that will keep track of all the parts of
your program, including the C++ source code, the header files, etc. Therefore, click the "Create Project"
link. A "New Project" dialogue box similar to the one below will appear.
1
Introduction to Visual C++ Trainer Name:- Bantegizia.Z
Debre Markos Poly Technic college
Department of information Technology
2
Introduction to Visual C++ Trainer Name:- Bantegizia.Z
Debre Markos Poly Technic college
Department of information Technology
After this, click on Finish. You will notice that it doesn't appear like anything has
changed. However, if you look at the Solution Explorer on the right-hand side you
will see "Solution 'hello' (1 project)".
#include <iostream>
using namespace std;
3
Introduction to Visual C++ Trainer Name:- Bantegizia.Z
Debre Markos Poly Technic college
Department of information Technology
int main()
{
char name[50];
cout << "Please enter your name:" << endl;
Lab Project
1. variable
A. Local variable
B. Global Variable
2. Operators
C. Arithmetic operator
D. Relational Operators
E. Logical/Boolean operator:
F. Assignment Operators
3. Sequence structure
A. Break statement
B. Switch statement
C. goto statement
D. continue statement
4. Selection structure
A. If ... else statement
B. Switch statement
5. Loops/ Repetition/ Iteration
A. While Loop
B. Do …While loop
C. For loop:
6. Increment and decrement
A. Post increment operator
B. Pre increment operator
C. Post decrement operator
D. Pre decrement operator
4
Introduction to Visual C++ Trainer Name:- Bantegizia.Z
Debre Markos Poly Technic college
Department of information Technology
7. Using arrays and arrays of objects
8. Methods and Namespace
9. Class
Derived classes using
A. Single Inheritance
B. Multilevel Inheritance
C. Multiple Inheritance
D. Multiple Inheritances
E. Hybrid Inheritance
10. Polymorphism
A. Compile-time Polymorphism
1. A. Function Overloading
2. B. Operator Overloading
B. Runtime Polymorphism
1. A. Function Overriding
2. B. Virtual Function
5
Introduction to Visual C++ Trainer Name:- Bantegizia.Z