2 Intro c++

825 views

Published on

Introduction to C++ Programming

Published in: Education, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
825
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
31
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

2 Intro c++

  1. 1. Introduction to C++ 09/04/131 VIT - SCSE By G.SasiKumar., M.Tech., (Ph.D)., Assistant Professor School of Computing Science and Engineering VIT University
  2. 2. C++ is an expanded version of C. Bjarne Stroutstrup first invented the C++ in 1980 at Bell Laboratories. He initially called as “C with Classes”. However, in 1983 the name was changed to C++. 09/04/132 VIT - SCSE
  3. 3. Advantages of C++ Data abstraction Data hiding Data encapsulation Inheritance Polymorphism 09/04/133 VIT - SCSE
  4. 4. Applications of C++ Real time systems Simulation and modeling Object-oriented databases AI and Expert Systems Neural networks and parallel programming CAD/CAM system 09/04/134 VIT - SCSE
  5. 5. Structure of C++ program Include files Class declaration Member function definitions Main function program 09/04/135 VIT - SCSE
  6. 6. First C++ Program // hello.cpp: displaying Hello World message #include<iostream.h> //preprocessor directive statement void main() // function declarator { //function block open brace cout<< “Welcome to C++"; // output statement } //function block close brace the output will be Welcome to C++ 09/04/136 VIT - SCSE
  7. 7. Comment Line Preprocessor Directive The preprocessor directive #include<iostream.h> includes all the statements of the header file iostream.h.  Function Declerator void main() 09/04/137 VIT - SCSE
  8. 8. Compilation Process Command – Line Compilation tcc filename.cpp (in the case of Turbo C++) bcc filename.cpp (in the case of Borland C++) 09/04/138 VIT - SCSE
  9. 9. Disadvantages of OOP The run time cost of dynamic binding is the major disadvantage Compiler overhead Runtime overhead Requires the mastery over the following areas: Software engineering Programming methodologies 09/04/139 VIT - SCSE
  10. 10. Brain Storm 1. Discuss the features of Object oriented programming. 2. Differentiate OOP and POP. 3. Define: Encapsulation. 4. Define: Polymorphism. 5. List some of the advantages of OOP 6. What are the applications and advantages of C++? 7. Write a C++ program that prints the message " This is my First CPP program". 09/04/1310 VIT - SCSE

×