SlideShare a Scribd company logo
Common Programming
Errors
1. Omitting the parentheses after main().
2. Omitting or incorrectly typing the opening
brace, {, that signifies the start of a function
body.
3. Omitting or incorrectly typing the closing
brace, }, that signifies the end of a function.
4. Omitting the semicolon at the end of each
C++ executable statement.
5. Adding a semicolon after the #include
<iostream> preprocessor command.
6. Misspelling the name of an object or
function, such as typing cot instead of cout.
7. Forgetting to enclose a string sent to cout
with double quotation marks.
8. Forgetting the n to indicate a new line.
Chapter Summary
1. A computer program is a self-contained unit of
instructions and data used to operate a computer to
produce a specific result.
2. An algorithm is a step-by-step procedure that must
terminate; it describes how a computation or task is to be
performed.
3. A C++ program consists of one or more modules called
functions. One of these functions must be called main().
The main() function identifies the starting point of a C++
program.
4. The simplest C++ program consists of the single function
main() and has this form:
#include <iostream>
using namespace std;
int main()
{ program statements in here;
return 0;
}
This program consists of a preprocessor #include
statement, a using statement, a header line for the main()
function, and the body of the main() function. The body of
the function begins with the opening brace, {, and ends with
the closing brace, }.
5. All executable C++ statements within a function body
must be terminated by a semicolon.
6. Many functions and classes are supplied in a standard
library provided with each C++ compiler. One set of
classes, used to create input and output capabilities, is
defined in the iostream header file.
7. The cout object is used to display text or numerical
results. A stream of characters can be sent to cout by
enclosing the characters in quotation marks and using the
insertion symbol, <<, as in the statement cout << “Hello
World!”;. The text in the string is displayed onscreen and
can include newline escape sequences for controlling the
format.

More Related Content

What's hot

Computer experiments 1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
Computer experiments   1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branchComputer experiments   1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
Computer experiments 1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
SAKSHIGAWADE2
 
C programming Lab 1
C programming Lab 1C programming Lab 1
C programming Lab 1
Zaibi Gondal
 
C programming on Ubuntu
C programming on UbuntuC programming on Ubuntu
C programming on Ubuntu
Binu Joy
 
General structure of c++
General structure of c++General structure of c++
General structure of c++
Ajay Chimmani
 
c++ programming Unit 2 basic structure of a c++ program
c++ programming Unit 2 basic structure of a c++ programc++ programming Unit 2 basic structure of a c++ program
c++ programming Unit 2 basic structure of a c++ program
AAKASH KUMAR
 
Operators
OperatorsOperators
Operators
Allah Ditta
 
escape sequences and substitution markers
escape sequences and substitution markersescape sequences and substitution markers
escape sequences and substitution markers
Micheal Ogundero
 
Intro to c++
Intro to c++Intro to c++
Intro to c++
Rafael Balderosa
 
Learning the C Language
Learning the C LanguageLearning the C Language
Learning the C Language
nTier Custom Solutions
 
PF LAB ASSIGNMENT
PF LAB ASSIGNMENTPF LAB ASSIGNMENT
PF LAB ASSIGNMENT
minqadtahir
 
Write a program that accepts percentage from the user and displays its grade ...
Write a program that accepts percentage from the user and displays its grade ...Write a program that accepts percentage from the user and displays its grade ...
Write a program that accepts percentage from the user and displays its grade ...
Farwa Aqeel
 
Activities on Operands
Activities on OperandsActivities on Operands
Activities on Operands
Nicole Ynne Estabillo
 
Programming fundamentals
Programming fundamentalsProgramming fundamentals
Programming fundamentals
Zaibi Gondal
 
Java 8
Java 8Java 8
Functions in c++,
Functions in c++,Functions in c++,
Functions in c++,
Padma Kannan
 

What's hot (20)

Computer experiments 1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
Computer experiments   1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branchComputer experiments   1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
Computer experiments 1^j2^j3^j4^j8^j9. d24 ^j sakshi gawade cs branch
 
Lab 1
Lab 1Lab 1
Lab 1
 
C programming Lab 1
C programming Lab 1C programming Lab 1
C programming Lab 1
 
Labsheet2
Labsheet2Labsheet2
Labsheet2
 
C programming on Ubuntu
C programming on UbuntuC programming on Ubuntu
C programming on Ubuntu
 
General structure of c++
General structure of c++General structure of c++
General structure of c++
 
c++ programming Unit 2 basic structure of a c++ program
c++ programming Unit 2 basic structure of a c++ programc++ programming Unit 2 basic structure of a c++ program
c++ programming Unit 2 basic structure of a c++ program
 
C++ Basics
C++ BasicsC++ Basics
C++ Basics
 
Operators
OperatorsOperators
Operators
 
escape sequences and substitution markers
escape sequences and substitution markersescape sequences and substitution markers
escape sequences and substitution markers
 
Intro to c++
Intro to c++Intro to c++
Intro to c++
 
Learning the C Language
Learning the C LanguageLearning the C Language
Learning the C Language
 
PF LAB ASSIGNMENT
PF LAB ASSIGNMENTPF LAB ASSIGNMENT
PF LAB ASSIGNMENT
 
Write a program that accepts percentage from the user and displays its grade ...
Write a program that accepts percentage from the user and displays its grade ...Write a program that accepts percentage from the user and displays its grade ...
Write a program that accepts percentage from the user and displays its grade ...
 
Fp201 unit2 1
Fp201 unit2 1Fp201 unit2 1
Fp201 unit2 1
 
Activities on Operands
Activities on OperandsActivities on Operands
Activities on Operands
 
Programming fundamentals
Programming fundamentalsProgramming fundamentals
Programming fundamentals
 
Practical no 6
Practical no 6Practical no 6
Practical no 6
 
Java 8
Java 8Java 8
Java 8
 
Functions in c++,
Functions in c++,Functions in c++,
Functions in c++,
 

Viewers also liked

Allen Waiters case study 2
Allen Waiters case study 2Allen Waiters case study 2
Allen Waiters case study 2Allen K. Waiters
 
Legacy Software to Cloud Progression - Part 1
Legacy Software to Cloud Progression - Part 1Legacy Software to Cloud Progression - Part 1
Legacy Software to Cloud Progression - Part 1
Dreamztech Solutions
 
2008 Buick Lucerne Columbia South Carolina
2008 Buick Lucerne Columbia South Carolina2008 Buick Lucerne Columbia South Carolina
2008 Buick Lucerne Columbia South Carolina
Jim Hudson Buick GMC Cadillac
 
Chapter 12 cl
Chapter 12 clChapter 12 cl
Chapter 12 cl
Hareem Aslam
 
Chapter 13 sio
Chapter 13 sioChapter 13 sio
Chapter 13 sio
Hareem Aslam
 
Contoh rph reka bentuk dan teknologi tahun 5 ver 1
Contoh rph reka bentuk dan teknologi tahun 5 ver 1Contoh rph reka bentuk dan teknologi tahun 5 ver 1
Contoh rph reka bentuk dan teknologi tahun 5 ver 1
FADLILA
 
Workshop on the Strategic Planning Model
 Workshop on the Strategic Planning Model Workshop on the Strategic Planning Model
Chapter 15 asp
Chapter 15 aspChapter 15 asp
Chapter 15 asp
Hareem Aslam
 
RPH KSSR BM THN.5
RPH KSSR BM THN.5RPH KSSR BM THN.5
RPH KSSR BM THN.5
Airun Pureluv
 
Methods of Gene Transfer
Methods of Gene TransferMethods of Gene Transfer
All you need to know about Implementing and Managing Change - "The People Fac...
All you need to know about Implementing and Managing Change - "The People Fac...All you need to know about Implementing and Managing Change - "The People Fac...
All you need to know about Implementing and Managing Change - "The People Fac...
George Vorster
 

Viewers also liked (14)

Allen Waiters case study 2
Allen Waiters case study 2Allen Waiters case study 2
Allen Waiters case study 2
 
Legacy Software to Cloud Progression - Part 1
Legacy Software to Cloud Progression - Part 1Legacy Software to Cloud Progression - Part 1
Legacy Software to Cloud Progression - Part 1
 
Abstract Ma Thesis
Abstract Ma ThesisAbstract Ma Thesis
Abstract Ma Thesis
 
2008 Buick Lucerne Columbia South Carolina
2008 Buick Lucerne Columbia South Carolina2008 Buick Lucerne Columbia South Carolina
2008 Buick Lucerne Columbia South Carolina
 
Iamthe point
Iamthe pointIamthe point
Iamthe point
 
CSC Leadership Programme-Speaker
CSC Leadership Programme-SpeakerCSC Leadership Programme-Speaker
CSC Leadership Programme-Speaker
 
Chapter 12 cl
Chapter 12 clChapter 12 cl
Chapter 12 cl
 
Chapter 13 sio
Chapter 13 sioChapter 13 sio
Chapter 13 sio
 
Contoh rph reka bentuk dan teknologi tahun 5 ver 1
Contoh rph reka bentuk dan teknologi tahun 5 ver 1Contoh rph reka bentuk dan teknologi tahun 5 ver 1
Contoh rph reka bentuk dan teknologi tahun 5 ver 1
 
Workshop on the Strategic Planning Model
 Workshop on the Strategic Planning Model Workshop on the Strategic Planning Model
Workshop on the Strategic Planning Model
 
Chapter 15 asp
Chapter 15 aspChapter 15 asp
Chapter 15 asp
 
RPH KSSR BM THN.5
RPH KSSR BM THN.5RPH KSSR BM THN.5
RPH KSSR BM THN.5
 
Methods of Gene Transfer
Methods of Gene TransferMethods of Gene Transfer
Methods of Gene Transfer
 
All you need to know about Implementing and Managing Change - "The People Fac...
All you need to know about Implementing and Managing Change - "The People Fac...All you need to know about Implementing and Managing Change - "The People Fac...
All you need to know about Implementing and Managing Change - "The People Fac...
 

Similar to Common Programming Errors

Programming Fundamentals lecture 5
Programming Fundamentals lecture 5Programming Fundamentals lecture 5
Programming Fundamentals lecture 5
REHAN IJAZ
 
lecture1 pf.pptx
lecture1 pf.pptxlecture1 pf.pptx
lecture1 pf.pptx
MalikMFalakShairUnkn
 
C++
C++C++
Beginner C++ easy slide and simple definition with questions
Beginner C++ easy slide and simple definition with questions Beginner C++ easy slide and simple definition with questions
Beginner C++ easy slide and simple definition with questions
khawajasharif
 
Basics Of C++.pptx
Basics Of C++.pptxBasics Of C++.pptx
Basics Of C++.pptx
DineshDhuri4
 
C++ AND CATEGORIES OF SOFTWARE
C++ AND CATEGORIES OF SOFTWAREC++ AND CATEGORIES OF SOFTWARE
C++ AND CATEGORIES OF SOFTWARE
UNIVERSITY OF ENGINEERING AND TECHNOLOGY TAXILA
 
Introduction to cpp language and all the required information relating to it
Introduction to cpp language and all the required information relating to itIntroduction to cpp language and all the required information relating to it
Introduction to cpp language and all the required information relating to it
PushkarNiroula1
 
Bcsl 031 solve assignment
Bcsl 031 solve assignmentBcsl 031 solve assignment
Intro To C++ - Class 3 - Sample Program
Intro To C++ - Class 3 - Sample ProgramIntro To C++ - Class 3 - Sample Program
Intro To C++ - Class 3 - Sample Program
Blue Elephant Consulting
 
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part II
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part IIIntro To C++ - Class 03 - An Introduction To C++ Programming, Part II
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part II
Blue Elephant Consulting
 
Introduction Of C++
Introduction Of C++Introduction Of C++
Introduction Of C++
Sangharsh agarwal
 
C language introduction geeksfor geeks
C language introduction   geeksfor geeksC language introduction   geeksfor geeks
C language introduction geeksfor geeks
AashutoshChhedavi
 
Introduction to cpp
Introduction to cppIntroduction to cpp
Introduction to cpp
Nilesh Dalvi
 
1 CMPS 12M Introduction to Data Structures Lab La.docx
1 CMPS 12M Introduction to Data Structures Lab La.docx1 CMPS 12M Introduction to Data Structures Lab La.docx
1 CMPS 12M Introduction to Data Structures Lab La.docx
tarifarmarie
 
Complete C programming Language Course
Complete C programming Language CourseComplete C programming Language Course
Complete C programming Language Course
Vivek chan
 
C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1
Ammara Javed
 
C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...
C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...
C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...
ANUSUYA S
 
Prog1-L1.pdf
Prog1-L1.pdfProg1-L1.pdf
Prog1-L1.pdf
valerie5142000
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
marvellous2
 
Lab 1.pptx
Lab 1.pptxLab 1.pptx
Lab 1.pptx
MohammedAlobaidy16
 

Similar to Common Programming Errors (20)

Programming Fundamentals lecture 5
Programming Fundamentals lecture 5Programming Fundamentals lecture 5
Programming Fundamentals lecture 5
 
lecture1 pf.pptx
lecture1 pf.pptxlecture1 pf.pptx
lecture1 pf.pptx
 
C++
C++C++
C++
 
Beginner C++ easy slide and simple definition with questions
Beginner C++ easy slide and simple definition with questions Beginner C++ easy slide and simple definition with questions
Beginner C++ easy slide and simple definition with questions
 
Basics Of C++.pptx
Basics Of C++.pptxBasics Of C++.pptx
Basics Of C++.pptx
 
C++ AND CATEGORIES OF SOFTWARE
C++ AND CATEGORIES OF SOFTWAREC++ AND CATEGORIES OF SOFTWARE
C++ AND CATEGORIES OF SOFTWARE
 
Introduction to cpp language and all the required information relating to it
Introduction to cpp language and all the required information relating to itIntroduction to cpp language and all the required information relating to it
Introduction to cpp language and all the required information relating to it
 
Bcsl 031 solve assignment
Bcsl 031 solve assignmentBcsl 031 solve assignment
Bcsl 031 solve assignment
 
Intro To C++ - Class 3 - Sample Program
Intro To C++ - Class 3 - Sample ProgramIntro To C++ - Class 3 - Sample Program
Intro To C++ - Class 3 - Sample Program
 
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part II
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part IIIntro To C++ - Class 03 - An Introduction To C++ Programming, Part II
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part II
 
Introduction Of C++
Introduction Of C++Introduction Of C++
Introduction Of C++
 
C language introduction geeksfor geeks
C language introduction   geeksfor geeksC language introduction   geeksfor geeks
C language introduction geeksfor geeks
 
Introduction to cpp
Introduction to cppIntroduction to cpp
Introduction to cpp
 
1 CMPS 12M Introduction to Data Structures Lab La.docx
1 CMPS 12M Introduction to Data Structures Lab La.docx1 CMPS 12M Introduction to Data Structures Lab La.docx
1 CMPS 12M Introduction to Data Structures Lab La.docx
 
Complete C programming Language Course
Complete C programming Language CourseComplete C programming Language Course
Complete C programming Language Course
 
C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1
 
C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...
C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...
C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...
 
Prog1-L1.pdf
Prog1-L1.pdfProg1-L1.pdf
Prog1-L1.pdf
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Lab 1.pptx
Lab 1.pptxLab 1.pptx
Lab 1.pptx
 

More from Nicole Ynne Estabillo

Sound and Waves
Sound and WavesSound and Waves
Sound and Waves
Nicole Ynne Estabillo
 
Mirrors and Reflections
Mirrors and ReflectionsMirrors and Reflections
Mirrors and Reflections
Nicole Ynne Estabillo
 
Electromagnetic Spectrum
Electromagnetic Spectrum Electromagnetic Spectrum
Electromagnetic Spectrum
Nicole Ynne Estabillo
 
Mathematics 10 (Quarter Two)
Mathematics 10 (Quarter Two)Mathematics 10 (Quarter Two)
Mathematics 10 (Quarter Two)
Nicole Ynne Estabillo
 
Ekonomiks 10 (Unit Two)
Ekonomiks 10 (Unit Two)Ekonomiks 10 (Unit Two)
Ekonomiks 10 (Unit Two)
Nicole Ynne Estabillo
 
Electromagnetic Waves
Electromagnetic WavesElectromagnetic Waves
Electromagnetic Waves
Nicole Ynne Estabillo
 
Software Development
Software DevelopmentSoftware Development
Software Development
Nicole Ynne Estabillo
 
Operator Precedence and Associativity
Operator Precedence and AssociativityOperator Precedence and Associativity
Operator Precedence and Associativity
Nicole Ynne Estabillo
 
Operands (Modulo)
Operands (Modulo)Operands (Modulo)
Operands (Modulo)
Nicole Ynne Estabillo
 
More on Data Types (Exponential and Scientific Notations)
More on Data Types (Exponential and Scientific Notations)More on Data Types (Exponential and Scientific Notations)
More on Data Types (Exponential and Scientific Notations)
Nicole Ynne Estabillo
 
Data Types
Data TypesData Types
Activities on Software Development
Activities on Software DevelopmentActivities on Software Development
Activities on Software Development
Nicole Ynne Estabillo
 
Activities on Operator Precedence and Associativity
Activities on Operator Precedence and AssociativityActivities on Operator Precedence and Associativity
Activities on Operator Precedence and Associativity
Nicole Ynne Estabillo
 
Activities on Exponential and Scientific Expressions
Activities on Exponential and Scientific ExpressionsActivities on Exponential and Scientific Expressions
Activities on Exponential and Scientific Expressions
Nicole Ynne Estabillo
 

More from Nicole Ynne Estabillo (14)

Sound and Waves
Sound and WavesSound and Waves
Sound and Waves
 
Mirrors and Reflections
Mirrors and ReflectionsMirrors and Reflections
Mirrors and Reflections
 
Electromagnetic Spectrum
Electromagnetic Spectrum Electromagnetic Spectrum
Electromagnetic Spectrum
 
Mathematics 10 (Quarter Two)
Mathematics 10 (Quarter Two)Mathematics 10 (Quarter Two)
Mathematics 10 (Quarter Two)
 
Ekonomiks 10 (Unit Two)
Ekonomiks 10 (Unit Two)Ekonomiks 10 (Unit Two)
Ekonomiks 10 (Unit Two)
 
Electromagnetic Waves
Electromagnetic WavesElectromagnetic Waves
Electromagnetic Waves
 
Software Development
Software DevelopmentSoftware Development
Software Development
 
Operator Precedence and Associativity
Operator Precedence and AssociativityOperator Precedence and Associativity
Operator Precedence and Associativity
 
Operands (Modulo)
Operands (Modulo)Operands (Modulo)
Operands (Modulo)
 
More on Data Types (Exponential and Scientific Notations)
More on Data Types (Exponential and Scientific Notations)More on Data Types (Exponential and Scientific Notations)
More on Data Types (Exponential and Scientific Notations)
 
Data Types
Data TypesData Types
Data Types
 
Activities on Software Development
Activities on Software DevelopmentActivities on Software Development
Activities on Software Development
 
Activities on Operator Precedence and Associativity
Activities on Operator Precedence and AssociativityActivities on Operator Precedence and Associativity
Activities on Operator Precedence and Associativity
 
Activities on Exponential and Scientific Expressions
Activities on Exponential and Scientific ExpressionsActivities on Exponential and Scientific Expressions
Activities on Exponential and Scientific Expressions
 

Recently uploaded

Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 

Recently uploaded (20)

Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 

Common Programming Errors

  • 2. 1. Omitting the parentheses after main(). 2. Omitting or incorrectly typing the opening brace, {, that signifies the start of a function body. 3. Omitting or incorrectly typing the closing brace, }, that signifies the end of a function.
  • 3. 4. Omitting the semicolon at the end of each C++ executable statement. 5. Adding a semicolon after the #include <iostream> preprocessor command. 6. Misspelling the name of an object or function, such as typing cot instead of cout.
  • 4. 7. Forgetting to enclose a string sent to cout with double quotation marks. 8. Forgetting the n to indicate a new line.
  • 5. Chapter Summary 1. A computer program is a self-contained unit of instructions and data used to operate a computer to produce a specific result. 2. An algorithm is a step-by-step procedure that must terminate; it describes how a computation or task is to be performed. 3. A C++ program consists of one or more modules called functions. One of these functions must be called main(). The main() function identifies the starting point of a C++ program.
  • 6. 4. The simplest C++ program consists of the single function main() and has this form: #include <iostream> using namespace std; int main() { program statements in here; return 0; }
  • 7. This program consists of a preprocessor #include statement, a using statement, a header line for the main() function, and the body of the main() function. The body of the function begins with the opening brace, {, and ends with the closing brace, }. 5. All executable C++ statements within a function body must be terminated by a semicolon.
  • 8. 6. Many functions and classes are supplied in a standard library provided with each C++ compiler. One set of classes, used to create input and output capabilities, is defined in the iostream header file. 7. The cout object is used to display text or numerical results. A stream of characters can be sent to cout by enclosing the characters in quotation marks and using the insertion symbol, <<, as in the statement cout << “Hello World!”;. The text in the string is displayed onscreen and can include newline escape sequences for controlling the format.