SlideShare a Scribd company logo
welcome to all
PROGRAMMING
IN C++
OOPS CONCEPT
TOKENS
EXPRESSION
CONTROL STRUCTURE
IF Example of if:
#include <iostream>
using namespace std;
int main()
{
int a = 15, b = 20;
if (b > a)
{
cout << "b is greater" <<
endl;
}
system("PAUSE");
}
Output:
b is greater
IF ELSE Example of if else:
#include <iostream> using
namespace std;
int main()
{
int a = 10, b = 15;
if (b > a)
{ cout << "b is greater" <<
endl;
}
else
{ cout << "a is greater" <<
endl; }
system("PAUSE");
}
Output:
b is greater
SWITCH
Example of switch:
#include <iostream>
using namespace std; main()
{
int a;
cout << "Please enter a no between 1 and 3: " <<
endl;
cin >> a;
switch(a)
{
case 1: cout << "You chose One" << endl;
break;
case 2: cout << "You chose Two" << endl;
break;
case 3: cout << "You chose Three" << endl;
break; default : cout << "Invalid Choice. Enter a no
between 1 and 3" << endl; break;
}
system("PAUSE");
}
Output:
Please enter a no between 1 and 3..
DO WHILE
Example of do while:
#include <iostream>
using namespace std;
int main ()
{
/* local variable Initialization */
int n = 1,times=0;
/* do-while loops execution */
Do
{ cout << "C++ do while loops: " <<
n <<endl;
n++;
}
while( n <= times ); return 0;
}
Output:
C++ do while loops: 1
WHILE
Example of while:
#include <iostream>
using namespace std;
int main ()
{
/* local variable Initialization */
int n = 1,times=5
/* while loops execution */
while( n <= times )
{
cout << "C++ while loops: " << n <<endl;
n++;
}
return 0;
}
Output:
C++ while loops: 1
C++ while loops: 2
C++ while loops: 3
FOR LOOP
Example of for:
#include <iostream> using
namespace std;
int main ()
{
/* local variable Initialization */
int n = 1,times=3;
/* for loops execution */ for( n = 1; n
<= times; n = n + 1 )
{
cout << "C++ for loops: " << n
<<endl;
}
return 0;
}
Output:
C++for loops: 1
C++ for loops: 2
C++ forloops: 3
FUNCTION IN C++
CLASS AND OBJECTS
CONSTRUCTOR AND
DESTRUCTOR
OPERATOR OVERLOADING
TYPE CONVERSION
INHERITANCE
TYPES OF INHERITANCE
POINTER
POLYMORPHISM
FUNCTION OVERLOADING
VIRTUAL FUNCTION
MANAGING CONSOLE I/O
FUNCTION
WORKING WITH FILES
3 rd animation
TEMPLATE
3 rd animation
EXCEPTION HANDLING
MANIPULATION STRING
OOPS DEVELOPMENT
THANKING YOU

More Related Content

DOCX
Jose dossantos.doc
DOCX
timingExercise
PDF
Inc decsourcefile
PDF
Rcpp11 useR2014
PDF
Rcpp11 genentech
PDF
Concurrency in Golang
PPT
Loops (1)
ODP
Perl - laziness, impatience, hubris, and one liners
Jose dossantos.doc
timingExercise
Inc decsourcefile
Rcpp11 useR2014
Rcpp11 genentech
Concurrency in Golang
Loops (1)
Perl - laziness, impatience, hubris, and one liners

What's hot (20)

PDF
R/C++ talk at earl 2014
DOCX
Tugas Program C++
PDF
PDF
Timur Shemsedinov "Пишу на колбеках, а что... (Асинхронное программирование)"
PDF
Data structure programs in c++
PDF
Scaling FastAGI Applications with Go
PDF
Go Containers
PDF
Concurrency in Python4k
PDF
最近作ったN個のCPANモジュール Yokohama.pm #10
PDF
All I know about rsc.io/c2go
PDF
Clojure+ClojureScript Webapps
PDF
Screaming Fast API Clients
DOCX
Applications of list
PDF
Building a DSL with GraalVM (VoxxedDays Luxembourg)
DOCX
Lab loop
PDF
Faster Python, FOSDEM
R/C++ talk at earl 2014
Tugas Program C++
Timur Shemsedinov "Пишу на колбеках, а что... (Асинхронное программирование)"
Data structure programs in c++
Scaling FastAGI Applications with Go
Go Containers
Concurrency in Python4k
最近作ったN個のCPANモジュール Yokohama.pm #10
All I know about rsc.io/c2go
Clojure+ClojureScript Webapps
Screaming Fast API Clients
Applications of list
Building a DSL with GraalVM (VoxxedDays Luxembourg)
Lab loop
Faster Python, FOSDEM
Ad

Similar to 3 rd animation (20)

PPTX
introduction to c++concept presentation.pptx
PPTX
Oop object oriented programing topics
DOCX
Tugas praktikukm pemrograman c++
PPTX
MUST CS101 Lab11
PDF
C++ TUTORIAL 2
PPT
ch5_additional.ppt
PPTX
12-Lec - Repetition For Loop.pptx
PPT
FP 201 - Unit 3 Part 2
PPTX
Intro to C++
DOC
Pads lab manual final
PDF
C++ TUTORIAL 3
DOCX
#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx
PDF
C++ practical
PPTX
Computational Physics Cpp Portiiion.pptx
PPTX
Programming - Marla Fuentes
PPTX
Project in programming
PDF
C++ Topic 1.pdf from Yangon Technological University
PPT
C++ programming
PDF
C++ TUTORIAL 4
PPT
C++ programming
introduction to c++concept presentation.pptx
Oop object oriented programing topics
Tugas praktikukm pemrograman c++
MUST CS101 Lab11
C++ TUTORIAL 2
ch5_additional.ppt
12-Lec - Repetition For Loop.pptx
FP 201 - Unit 3 Part 2
Intro to C++
Pads lab manual final
C++ TUTORIAL 3
#define ENABLE_COMMANDER#define ENABLE_REPORTER#include c.docx
C++ practical
Computational Physics Cpp Portiiion.pptx
Programming - Marla Fuentes
Project in programming
C++ Topic 1.pdf from Yangon Technological University
C++ programming
C++ TUTORIAL 4
C++ programming
Ad

Recently uploaded (20)

PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Pharma ospi slides which help in ospi learning
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Pre independence Education in Inndia.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
Cell Structure & Organelles in detailed.
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Business Ethics Teaching Materials for college
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Renaissance Architecture: A Journey from Faith to Humanism
Complications of Minimal Access Surgery at WLH
Pharma ospi slides which help in ospi learning
O7-L3 Supply Chain Operations - ICLT Program
O5-L3 Freight Transport Ops (International) V1.pdf
01-Introduction-to-Information-Management.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPH.pptx obstetrics and gynecology in nursing
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Pre independence Education in Inndia.pdf
Classroom Observation Tools for Teachers
Cell Structure & Organelles in detailed.
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Anesthesia in Laparoscopic Surgery in India
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Business Ethics Teaching Materials for college

3 rd animation