11 Mr.R.D.SIVAKUMAR, M.Sc.,M.Phil.,M.Tech.,Mr.R.D.SIVAKUMAR, M.Sc.,M.Phil.,M.Tech., ASSISTANT PROFESSORASSISTANT PROFESSOR DEPARTMENT OF COMPUTER SCIENCEDEPARTMENT OF COMPUTER SCIENCE AYYA NADAR JANAKI AMMAL COLLEGEAYYA NADAR JANAKI AMMAL COLLEGE (Affiliated to Madurai Kamaraj University, Madurai, Re-accredited (3rd Cycle) with ‘A’ Grade (CGPA 3.67 out of 4) by NAAC, Recognized by DBT as Star College and College of Excellence by UGC) SIVAKASI – 626 124. (UGC Announced : Rurally and Economically Backward Area)SIVAKASI – 626 124. (UGC Announced : Rurally and Economically Backward Area) Virudhunagar District, Tamil Nadu.Virudhunagar District, Tamil Nadu. (Website: www.rdsivakumar.webege.com www.rdsivakumar.blogspot.in) Mobile Apps : Google Play Store – RDS Academic E-mail : sivamsccsit@gmail.com Mobile : 99440-42243 STRUCTURE OF C++ PROGRAM
33 Mr.R.D.SIVAKUMAR, M.Sc.,M.Phil.,M.Tech.,Mr.R.D.SIVAKUMAR, M.Sc.,M.Phil.,M.Tech., ASSISTANT PROFESSORASSISTANT PROFESSOR DEPARTMENT OF COMPUTER SCIENCEDEPARTMENT OF COMPUTER SCIENCE AYYA NADAR JANAKI AMMAL COLLEGEAYYA NADAR JANAKI AMMAL COLLEGE (Affiliated to Madurai Kamaraj University, Madurai, Re-accredited (3rd Cycle) with ‘A’ Grade (CGPA 3.67 out of 4) by NAAC, Recognized by DBT as Star College and College of Excellence by UGC) SIVAKASI – 626 124. (UGC Announced : Rurally and Economically Backward Area)SIVAKASI – 626 124. (UGC Announced : Rurally and Economically Backward Area) Virudhunagar District, Tamil Nadu.Virudhunagar District, Tamil Nadu. (Website: www.rdsivakumar.webege.com www.rdsivakumar.blogspot.in) Mobile Apps : Google Play Store – RDS Academic E-mail : sivamsccsit@gmail.com Mobile : 99440-42243 STRUCTURE OF C++ PROGRAM
SOFTWARE A software is a collection of programs. Types of software : Application Software (VB) and System Software (C and C++) A program is a set of instructions Instruction means command.
C C Program was developed by Dennics Rictic in the year 1980. C is a structured oriented programming (or) Procedure Oriented Programming (POP).
C TERMS Data – A Collection of information. Function – To stored the group of statements. It returns only one value.
C++ C++ was developed by Bjarne Stroustrup in the year 1983. C++ is a Object Oriented Programming (OOP). OOP is an approach, that create a partition memory area for both data and function
C++ TERMS Data - A collection of information Function - It returns only one value. To stored the group of statements. Class - A combination of data and functions. Object - It is instance of class.
HEADER FILE # include <iostream.h> - To stored the input and output statements. # - Preprocessor Include - Keyword Io - Input and Output. Stream - Sequence of bytes. .h - Header file. # include <conio.h> - To stored the clrscr( ) and getch( ) statements. # include<math.h> - To stored the mathematical functions (Sin or Cos etc.,)
CLASS DECLARATION Class classname { private: Data Declaration; public: member function declaration or definition; };
MEMBER FUNCTIONS Member Function Declaration returntype functionname (datatype variablename); Returntype – void or int. Function name – User Defined Name. Datatype - int Variable name - User Defined Name. Member Function Declaration returntype functionname (datatype variablename) {-------; }
main() main ( ) // It returns integer value. { classname object; object.functionname ( ); }  main( ) – It is used to access the public.  public( ) - It is used to access the main ( ) and private.  private( ) - It is used to access the public( ).
EXAMPLE # include <iostream.h> c=a+b; class display cout<<c; { } private: }; int a,b,c; main( ) public: { void dis( ) display d; { d.dis( ); cin>>a>>b; }
PRACTICAL TRAINING
1616
1717
E-Assignment Module  C++ - http://www.rdselearningcpp.site11.com/ + E-assignment 1818
E-CONTENT DEVELOPMENT  C++ - http://www.rdselearningcpp.site11.com/ 1919
 Slideshare : http://www.slideshare.net/sivamsccsit/ 2020
WHATSAPP – +91 99440 42243 2121
M-LEARNING – FREE OF COST FROM GOOGLE PLAYSTORE  RDS CPP - https://play.google.com/store/apps/details?id=com.wRDSCPP 2222
ANDROID – QR CODE CREATED  QR codes or “quick response codes” are part of a whole new way of connecting with learners via their smart phones. A machine-readable code consisting of an array of black and white squares, typically used for storing e-learning websites URLs for reading by the camera on a smart phone. In above all the e-learning websites are converted in to the QR Code (QR Code Link – http://www.rdselearningcpp.site11.com/) 2323
 SKYPE – SIVAKUMAR.DHANASEKARAN 2424
2525
2626 Mr.R.D.SIVAKUMAR,M.Sc.,M.Phil.,M.Tech.,Mr.R.D.SIVAKUMAR,M.Sc.,M.Phil.,M.Tech., ASSISTANT PROFESSOR OF COMPUTER SCIENCE &ASSISTANT PROFESSOR OF COMPUTER SCIENCE & ASSISTANT PROFESSOR AND HEAD, DEPARTMENT OF M.Com. (CA),ASSISTANT PROFESSOR AND HEAD, DEPARTMENT OF M.Com. (CA), AYYA NADAR JANAKI AMMAL COLLEGEAYYA NADAR JANAKI AMMAL COLLEGE (Affiliated to Madurai Kamaraj University, Madurai, Re-accredited (3rd Cycle) with ‘A’ Grade (CGPA 3.67 out of 4) by NAAC, Recognized by DBT as Star College and College of Excellence by UGC) SIVAKASI – 626 124.SIVAKASI – 626 124. (Website: www.rdsivakumar.webege.com www.rdsivakumar.blogspot.in) Mobile Apps : Google Play Store – RDS Academic E-mail : sivamsccsit@gmail.com Mobile : 99440-42243
ACADEMIC RELEVANT SOCIAL LINKS  Facebook : https://www.facebook.com/sivamsccsit/photos  Blog : http://www.rdsivakumar.blogspot.in/  Twitter : https://twitter.com/sivakum82452050  Youtube : https://www.youtube.com/channel/UC8jEpT5KrcTACjLQoD8yUZw  Teacher Tube :Teacher Tube : http://www.teachertube.com/search/google-search? query=r.d.sivakumar&safe=high&search- type=all&head_curriculum=0&head_content_area=0&head_subject=0&hea d_category=0&head_skill=0#gsc.tab=0&gsc.q=r.d.sivakumar&gsc.page=1 2727

Structure of C++ - R.D.Sivakumar

  • 1.
    11 Mr.R.D.SIVAKUMAR, M.Sc.,M.Phil.,M.Tech.,Mr.R.D.SIVAKUMAR, M.Sc.,M.Phil.,M.Tech., ASSISTANTPROFESSORASSISTANT PROFESSOR DEPARTMENT OF COMPUTER SCIENCEDEPARTMENT OF COMPUTER SCIENCE AYYA NADAR JANAKI AMMAL COLLEGEAYYA NADAR JANAKI AMMAL COLLEGE (Affiliated to Madurai Kamaraj University, Madurai, Re-accredited (3rd Cycle) with ‘A’ Grade (CGPA 3.67 out of 4) by NAAC, Recognized by DBT as Star College and College of Excellence by UGC) SIVAKASI – 626 124. (UGC Announced : Rurally and Economically Backward Area)SIVAKASI – 626 124. (UGC Announced : Rurally and Economically Backward Area) Virudhunagar District, Tamil Nadu.Virudhunagar District, Tamil Nadu. (Website: www.rdsivakumar.webege.com www.rdsivakumar.blogspot.in) Mobile Apps : Google Play Store – RDS Academic E-mail : sivamsccsit@gmail.com Mobile : 99440-42243 STRUCTURE OF C++ PROGRAM
  • 3.
    33 Mr.R.D.SIVAKUMAR, M.Sc.,M.Phil.,M.Tech.,Mr.R.D.SIVAKUMAR, M.Sc.,M.Phil.,M.Tech., ASSISTANTPROFESSORASSISTANT PROFESSOR DEPARTMENT OF COMPUTER SCIENCEDEPARTMENT OF COMPUTER SCIENCE AYYA NADAR JANAKI AMMAL COLLEGEAYYA NADAR JANAKI AMMAL COLLEGE (Affiliated to Madurai Kamaraj University, Madurai, Re-accredited (3rd Cycle) with ‘A’ Grade (CGPA 3.67 out of 4) by NAAC, Recognized by DBT as Star College and College of Excellence by UGC) SIVAKASI – 626 124. (UGC Announced : Rurally and Economically Backward Area)SIVAKASI – 626 124. (UGC Announced : Rurally and Economically Backward Area) Virudhunagar District, Tamil Nadu.Virudhunagar District, Tamil Nadu. (Website: www.rdsivakumar.webege.com www.rdsivakumar.blogspot.in) Mobile Apps : Google Play Store – RDS Academic E-mail : sivamsccsit@gmail.com Mobile : 99440-42243 STRUCTURE OF C++ PROGRAM
  • 4.
    SOFTWARE A software isa collection of programs. Types of software : Application Software (VB) and System Software (C and C++) A program is a set of instructions Instruction means command.
  • 5.
    C C Program wasdeveloped by Dennics Rictic in the year 1980. C is a structured oriented programming (or) Procedure Oriented Programming (POP).
  • 6.
    C TERMS Data –A Collection of information. Function – To stored the group of statements. It returns only one value.
  • 7.
    C++ C++ was developedby Bjarne Stroustrup in the year 1983. C++ is a Object Oriented Programming (OOP). OOP is an approach, that create a partition memory area for both data and function
  • 8.
    C++ TERMS Data -A collection of information Function - It returns only one value. To stored the group of statements. Class - A combination of data and functions. Object - It is instance of class.
  • 10.
    HEADER FILE # include<iostream.h> - To stored the input and output statements. # - Preprocessor Include - Keyword Io - Input and Output. Stream - Sequence of bytes. .h - Header file. # include <conio.h> - To stored the clrscr( ) and getch( ) statements. # include<math.h> - To stored the mathematical functions (Sin or Cos etc.,)
  • 11.
    CLASS DECLARATION Class classname { private: DataDeclaration; public: member function declaration or definition; };
  • 12.
    MEMBER FUNCTIONS Member FunctionDeclaration returntype functionname (datatype variablename); Returntype – void or int. Function name – User Defined Name. Datatype - int Variable name - User Defined Name. Member Function Declaration returntype functionname (datatype variablename) {-------; }
  • 13.
    main() main ( )// It returns integer value. { classname object; object.functionname ( ); }  main( ) – It is used to access the public.  public( ) - It is used to access the main ( ) and private.  private( ) - It is used to access the public( ).
  • 14.
    EXAMPLE # include <iostream.h>c=a+b; class display cout<<c; { } private: }; int a,b,c; main( ) public: { void dis( ) display d; { d.dis( ); cin>>a>>b; }
  • 15.
  • 16.
  • 17.
  • 18.
    E-Assignment Module  C++- http://www.rdselearningcpp.site11.com/ + E-assignment 1818
  • 19.
    E-CONTENT DEVELOPMENT  C++- http://www.rdselearningcpp.site11.com/ 1919
  • 20.
     Slideshare :http://www.slideshare.net/sivamsccsit/ 2020
  • 21.
    WHATSAPP – +9199440 42243 2121
  • 22.
    M-LEARNING – FREEOF COST FROM GOOGLE PLAYSTORE  RDS CPP - https://play.google.com/store/apps/details?id=com.wRDSCPP 2222
  • 23.
    ANDROID – QRCODE CREATED  QR codes or “quick response codes” are part of a whole new way of connecting with learners via their smart phones. A machine-readable code consisting of an array of black and white squares, typically used for storing e-learning websites URLs for reading by the camera on a smart phone. In above all the e-learning websites are converted in to the QR Code (QR Code Link – http://www.rdselearningcpp.site11.com/) 2323
  • 24.
     SKYPE –SIVAKUMAR.DHANASEKARAN 2424
  • 25.
  • 26.
    2626 Mr.R.D.SIVAKUMAR,M.Sc.,M.Phil.,M.Tech.,Mr.R.D.SIVAKUMAR,M.Sc.,M.Phil.,M.Tech., ASSISTANT PROFESSOR OFCOMPUTER SCIENCE &ASSISTANT PROFESSOR OF COMPUTER SCIENCE & ASSISTANT PROFESSOR AND HEAD, DEPARTMENT OF M.Com. (CA),ASSISTANT PROFESSOR AND HEAD, DEPARTMENT OF M.Com. (CA), AYYA NADAR JANAKI AMMAL COLLEGEAYYA NADAR JANAKI AMMAL COLLEGE (Affiliated to Madurai Kamaraj University, Madurai, Re-accredited (3rd Cycle) with ‘A’ Grade (CGPA 3.67 out of 4) by NAAC, Recognized by DBT as Star College and College of Excellence by UGC) SIVAKASI – 626 124.SIVAKASI – 626 124. (Website: www.rdsivakumar.webege.com www.rdsivakumar.blogspot.in) Mobile Apps : Google Play Store – RDS Academic E-mail : sivamsccsit@gmail.com Mobile : 99440-42243
  • 27.
    ACADEMIC RELEVANT SOCIALLINKS  Facebook : https://www.facebook.com/sivamsccsit/photos  Blog : http://www.rdsivakumar.blogspot.in/  Twitter : https://twitter.com/sivakum82452050  Youtube : https://www.youtube.com/channel/UC8jEpT5KrcTACjLQoD8yUZw  Teacher Tube :Teacher Tube : http://www.teachertube.com/search/google-search? query=r.d.sivakumar&safe=high&search- type=all&head_curriculum=0&head_content_area=0&head_subject=0&hea d_category=0&head_skill=0#gsc.tab=0&gsc.q=r.d.sivakumar&gsc.page=1 2727