Your SlideShare is downloading. ×
2 Intro c++
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

2 Intro c++

275
views

Published on

Introduction to C++ Programming

Introduction to C++ Programming

Published in: Education, Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
275
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
19
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 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. 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. Advantages of C++ Data abstraction Data hiding Data encapsulation Inheritance Polymorphism 09/04/133 VIT - SCSE
  • 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. Structure of C++ program Include files Class declaration Member function definitions Main function program 09/04/135 VIT - SCSE
  • 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. 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. 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. 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. 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

×