1. WRITE A PROGRAM TO DISPLAY A “WELCOME MESSAGE”.
2. WRITE A PROGRAM TO PERFORM ADDITION OF TWO NUMBERS.
3. WRITE A PROGRAM TO SWAP TWO NUMBER USING FUNCTIONS.
4. WRITE A PROGRAM TO IMPLEMENT CALL BY VALUE MECHANISM.
5. WRITE A PROGRAM TO IMPLEMENT CALL BY REFERENCE MECHANISM.
6. WRITE A PROGRAM TO IMPLEMENT CALL BY ADDRESS MECHANISM.
7. WRITE A PROGRAM TO CREATE A CLASS WHICH PERFORMS ADDITION AND MULTIPLICATION OF THREE NUMBERS USING SEPARATE FUNCTION.
8. WRITE A PROGRAM TO CREATE A CLASS WHICH ACCEPT THE DISTANCE BETWEEN TWO CITIES AND PRODUCE THE DISTANCE IN METER AND CENTIMETER.
9. WRITE A PROGRAM TO IMPLEMENT CONSTRUCTOR AND DESTRUCTOR.
10. WRITE A PROGRAM TO IMPLEMENT COPY CONSTRUCTOR.
11. WRITE A PROGRAM TO IMPLEMENT THIS POINTER.
12. WRITE A PROGRAM TO IMPLEMENT POLYMORPHISM.
13. WRITE A PROGRAM TO IMPLEMENT MULTIPLE INHERITANCES.
14. WRITE A PROGRAM TO IMPLEMENT MULTILEVEL INHERITANCE.
PROGRAM 1-
#include
#include
void main()
{
clrscr();
cout<<"WELCOME IN THE WORLD OF C++";
getch();
}
2. WRITE A PROGRAM TO PERFORM ADDITION OF TWO NUMBERS.
3. WRITE A PROGRAM TO SWAP TWO NUMBER USING FUNCTIONS.
4. WRITE A PROGRAM TO IMPLEMENT CALL BY VALUE MECHANISM.
5. WRITE A PROGRAM TO IMPLEMENT CALL BY REFERENCE MECHANISM.
6. WRITE A PROGRAM TO IMPLEMENT CALL BY ADDRESS MECHANISM.
7. WRITE A PROGRAM TO CREATE A CLASS WHICH PERFORMS ADDITION AND MULTIPLICATION OF THREE NUMBERS USING SEPARATE FUNCTION.
8. WRITE A PROGRAM TO CREATE A CLASS WHICH ACCEPT THE DISTANCE BETWEEN TWO CITIES AND PRODUCE THE DISTANCE IN METER AND CENTIMETER.
9. WRITE A PROGRAM TO IMPLEMENT CONSTRUCTOR AND DESTRUCTOR.
10. WRITE A PROGRAM TO IMPLEMENT COPY CONSTRUCTOR.
11. WRITE A PROGRAM TO IMPLEMENT THIS POINTER.
12. WRITE A PROGRAM TO IMPLEMENT POLYMORPHISM.
13. WRITE A PROGRAM TO IMPLEMENT MULTIPLE INHERITANCES.
14. WRITE A PROGRAM TO IMPLEMENT MULTILEVEL INHERITANCE.
PROGRAM 1-
#include
#include
void main()
{
clrscr();
cout<<"WELCOME IN THE WORLD OF C++";
getch();
}
No comments:
Post a Comment