1. 1
Mr.R.D.SIVAKUMAR, M.Sc.,M.Phil.,M.Tech.,
ASSISTANT PROFESSOR
DEPARTMENT OF COMPUTER SCIENCE
AYYA 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)
Virudhunagar District, Tamil Nadu.
www.rdsivakumar.blogspot.in
E-mail : sivamsccsit@gmail.com Mobile : 99440-42243
STRUCTURE OF C++ PROGRAM
2.
3. 3
Mr.R.D.SIVAKUMAR, M.Sc.,M.Phil.,M.Tech.,
ASSISTANT PROFESSOR
DEPARTMENT OF COMPUTER SCIENCE
AYYA 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)
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 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.
5. C
C Program was developed 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 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
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.
9.
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.,)
12. 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) {-------; }
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; }
22. M-LEARNING – FREE OF COST FROM GOOGLE PLAYSTORE
RDS CPP - https://play.google.com/store/apps/details?id=com.wRDSCPP
22
23. 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
23
26. 26
Mr.R.D.SIVAKUMAR,M.Sc.,M.Phil.,M.Tech.,
ASSISTANT PROFESSOR OF COMPUTER SCIENCE &
ASSISTANT PROFESSOR AND HEAD, DEPARTMENT OF M.Com. (CA),
AYYA 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.
www.rdsivakumar.blogspot.in
E-mail : sivamsccsit@gmail.com Mobile : 99440-42243