SlideShare une entreprise Scribd logo
1  sur  48
Télécharger pour lire hors ligne
Programing Fundamentals with C++
CS-111
Muhammd Farooq
Lecturer in Computer science
GPGC Swabi
farooq3388@gmail.com
Basci Concepts of Programing
• Computer Program
• software
• SDLC
• Computer Programing
• Types of Programing languages
• Cataogries of Porgramer
• Types of Traslators
• Source code and Object code
• Fitch-Decode-Execute Cyle
• Phases of Program Execution
• Types of programing errors
Basic concepts of C++
• What is C++
• Difference between C & C++
• Brief history of C++
• IDEs for C++
• Online IDEs for C++
• Basic elements of programing languages
• Basic structure of C++
• Course References
...........
...........
...........
...........
...........
Porgraming
language
Program (set of instructions)
Programer
Program, Programmer & Programing Language
Computer
Computer Program
• A proper sequence of instructions designed to perform a specific task on the
computer is called program
What is the difference between
program and Programme
Software
Software:
It is a term that includes the following :
1. Set of programs
2. Installation Manual
3. Documentation
Examples:
• MS Word
• Adobe Photoshop
• Calculator
• Windows
• Antivirus
Calculator software
Div Program
Mul Program
Sub Program
Add Program
Calculator is a software which consists
of programs (Div, Mul, Sub and Add)
Software Development Life Cyle (SDLC)
• SDLC is a process that consists of a series of steps to develop a computer software
• SDLC is also called Sofware Development Process (SDP)
Computer Programing
• The act or process of writing programs
• Computer programming is the process of designing and building an executable computer
program for accomplishing a specific computing task.
Programming process: involves
1. Requirements analysis
2. Drawing flowcharts
3. Generating algorithms
4. Implementation of algorithms in a chosen programming language (Coding)
5. Testing & Debugging
6. Documentation
What is the difference between
programing and coding
What is the difference between
program and Algorithm
Programing Language
• A soruce of communicaton with the computer
• The computer language used to create set of programs
Parts of a Language:
• Syntax: Refers to grammatical structure of the language
• Sementics: Refers to the meanging of the words in the languge
Types:
1. Machine Language
2. Assembly Language
3. High Level Language
Which was the first computer
programing language
Machine Language
• Programming language that can be directly understood and executed by a CPU
of computer without conversion (translation)
• consits of 0 and 1
• Also called Binary or low level language
Assembly Language
• A programming language that consists of instructions that are mnemonic codes for
corresponding machine language instructions
• Assembler is used to convert assembly language into machine language
• Mnemonics code may be
§ SUM
§ SUB
§ MUL
§ LOAD
§ MOV
High Level Language
• The type of programing languge which is easy to understand and similar
english language is called high level language
Examples:
§ C
§ C++
§ Java
§ C#
§ Python
1.Describe brief history of progriaming
languages.
2. What are the generations of programing
languages.
3.What is paradiagm? describe programing
pargdigms.
Computer Programer
• A person who is expert to write a program in any programing language
• A person who creates computer software
• Also called software developer or software engineer
Catagoreis
q Windows Applications Developer
q Web Developer
q Mobile Apps Developer
q Games Developer
Who was the first
computer programmer?
Windows Application Developer
Ø Develop softwares run on windows
Ø Also known as
q Desktop Applications Developer
q Database Developer
Languages
Java, C++,VB.Net, C#, Python
Web Developer
Ø Develop websites and web apps
Ø these require web browser to run
languages
HTML, Javascript,C/C++, ASP.NET, PHP,
Python, Ruby
Mobile Apps Developer
Ø Develope apps for mobile phone such as
android and iphpne
Languages
Android, Swift (for iOS), Objective C, HTML5,
Java, C#
Games Developer
Ø Develop games
Ø Games my be 2D or 3D
• The type of program used to convert HLL into LLL
• The type of program used to convert source code into equal object code
Types
1. Compiler
2. Interpreter
Translators
Difference b/w Source code & Object code
...........
...........
...........
...........
...........
High Level
language
Source Code
Translator
(Comiler/
Interpreter)
Machine
language
Object Code
010101
110000
001001
110111
010110
Translators
C
C++
Java
Compiler Interpreter
• The instruction cycle (also known as the fetch–decode–execute cycle or the fetch-
execute cycle)
• It is the basic operational process of a computer system.
• This cycle is repeated continuously by a computer's CPU from boot-up until the
computer has shut down.
Fetch - Decode- Execute Cyle
1.Retrieves a program
instruction from its memory
3. Determines what actions
the instruction describes
2. Carries out those
actions
Fetch - Decode- Execute Cyle
Phases of C++ Program Execution
Why programing errors are called “Bugs”
What is the difference b/w
tesing & de-bugging
What is C++?
• Middle level language: consits of low and high level programing
• General purpose: Used to develop any type of applications like desktop, web and mobile
• Hybrid language: Supports both structural and Object oriented paradigm
• Extension of C: OOP is added to C to enhance it to C++
• Case Sensitive: Smal and Capital letters are considered different
• Compiled language: C++ programs are converted into object code through compiler
What does ++ mean in
“C++”?
Difference between C & C ++
S# C C++
1 supports structure programing
paradigm
supports both structure and object
oriented paradigm
2 procedural programing language Object oridented programing language
3 subset of C++ superset of C
4 function overloading not possible function overloading possible
5 namespace not available namesapce avilable
Difference b/w C & C ++
C OOP
C++
Brief history of C++
BCPLB
C
C++
• BCPL was developed by Master Martin Richards
in1967
• B was developed by Ken Thomson in 1969
• C was developed by Dennis Ritche in 1972
• C has many concepts of BCPL & B
• C++ was devloped by BJarnestroustrup in 1979
• First name of C++ was “C with classes”
• The name was changed to C++ in 1983
• C++ is an extension of C language
OOP
+
IDEs for C++
• Codeblocks
• Dev C++
• Eclipse
• Visual Studio
1.Code, Compile & Run
2.C++ Shell
3.Visual C++ Compiler Online
4.JDoodle - free Online Compiler
5.Free Online IDE and Terminal
Basic Elements of a Programing Language
• Programing enviromnet
• Basic structure
• Data types
• Variables
• Keywords
• Basic operators
• Decision making
• Loops
• Numbers & Characters
• Arrays
• Strings
• Functions
• File Input/Output
• Line 1 & Line 2 : pre-processor directives
• Line 3 : Execution begins from main
function
• Line 4 : Start of main body
• Line 5 : Output statement
• Line 6 : Return statement
• Line 7 : End of main body
Basic Structure of C++
Course Refernces
• Object Oriented Programing by Robert Lafore
• C++ how to program by Deitel & dietel
• OOP by Aikman series
• C/C++ by Professor Tariq Siddique
• www.CPlusPlus.com
• www.Lerancpp.com
• www.Tutorialspoint.com
Programing fundamentals with C++

Contenu connexe

Tendances (20)

C string
C stringC string
C string
 
Command line arguments.21
Command line arguments.21Command line arguments.21
Command line arguments.21
 
Different loops in C
Different loops in CDifferent loops in C
Different loops in C
 
Python - the basics
Python - the basicsPython - the basics
Python - the basics
 
RECURSION IN C
RECURSION IN C RECURSION IN C
RECURSION IN C
 
Functions in C
Functions in CFunctions in C
Functions in C
 
Structure in c
Structure in cStructure in c
Structure in c
 
Function C programming
Function C programmingFunction C programming
Function C programming
 
Functions In C
Functions In CFunctions In C
Functions In C
 
C standard library functions
C standard library functionsC standard library functions
C standard library functions
 
C++ ppt
C++ pptC++ ppt
C++ ppt
 
Loops Basics
Loops BasicsLoops Basics
Loops Basics
 
Functions in c
Functions in cFunctions in c
Functions in c
 
Loops in c programming
Loops in c programmingLoops in c programming
Loops in c programming
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Looping (Computer programming and utilization)
Looping (Computer programming and utilization)Looping (Computer programming and utilization)
Looping (Computer programming and utilization)
 
Introduction to c#
Introduction to c#Introduction to c#
Introduction to c#
 
Strings Functions in C Programming
Strings Functions in C ProgrammingStrings Functions in C Programming
Strings Functions in C Programming
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
 
Variables in C and C++ Language
Variables in C and C++ LanguageVariables in C and C++ Language
Variables in C and C++ Language
 

Similaire à Programing fundamentals with C++

Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptxPmarkNorcio
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programmingMalikaJoya
 
Advance C# Programming Part 1.pptx
Advance C# Programming Part 1.pptxAdvance C# Programming Part 1.pptx
Advance C# Programming Part 1.pptxpercivalfernandez3
 
Advance C# Programming Part 1.pdf
Advance C# Programming Part 1.pdfAdvance C# Programming Part 1.pdf
Advance C# Programming Part 1.pdfpercivalfernandez2
 
Introduction to Computer
Introduction to ComputerIntroduction to Computer
Introduction to Computerzaheeriqbal41
 
Introduction of c++ course
Introduction of c++ courseIntroduction of c++ course
Introduction of c++ coursekritikasoni15
 
Embedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals masterEmbedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals masterHossam Hassan
 
Introduction to computers
Introduction to computersIntroduction to computers
Introduction to computersLearn By Watch
 
Introduct To C Language Programming
Introduct To C Language ProgrammingIntroduct To C Language Programming
Introduct To C Language Programmingyarkhosh
 
Computer Programming In C.pptx
Computer Programming In C.pptxComputer Programming In C.pptx
Computer Programming In C.pptxchouguleamruta24
 
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTREC & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTREjatin batra
 

Similaire à Programing fundamentals with C++ (20)

C_Programming_Notes_ICE
C_Programming_Notes_ICEC_Programming_Notes_ICE
C_Programming_Notes_ICE
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptx
 
Compilers.pptx
Compilers.pptxCompilers.pptx
Compilers.pptx
 
Unit ii
Unit   iiUnit   ii
Unit ii
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
Advance C# Programming Part 1.pptx
Advance C# Programming Part 1.pptxAdvance C# Programming Part 1.pptx
Advance C# Programming Part 1.pptx
 
Advance C# Programming Part 1.pdf
Advance C# Programming Part 1.pdfAdvance C# Programming Part 1.pdf
Advance C# Programming Part 1.pdf
 
Introduction to Computer
Introduction to ComputerIntroduction to Computer
Introduction to Computer
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
 
C language unit-1
C language unit-1C language unit-1
C language unit-1
 
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDYC LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
 
C languaGE UNIT-1
C languaGE UNIT-1C languaGE UNIT-1
C languaGE UNIT-1
 
Introduction of c++ course
Introduction of c++ courseIntroduction of c++ course
Introduction of c++ course
 
Embedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals masterEmbedded c c++ programming fundamentals master
Embedded c c++ programming fundamentals master
 
Introduction to computers
Introduction to computersIntroduction to computers
Introduction to computers
 
Introduct To C Language Programming
Introduct To C Language ProgrammingIntroduct To C Language Programming
Introduct To C Language Programming
 
Lesson 1
Lesson 1Lesson 1
Lesson 1
 
Computer Programming In C.pptx
Computer Programming In C.pptxComputer Programming In C.pptx
Computer Programming In C.pptx
 
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTREC & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
C & C++ Training Centre in Ambala! BATRA COMPUTER CENTRE
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 

Dernier

(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Intelisync
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 

Dernier (20)

(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 

Programing fundamentals with C++

  • 1. Programing Fundamentals with C++ CS-111 Muhammd Farooq Lecturer in Computer science GPGC Swabi farooq3388@gmail.com
  • 2. Basci Concepts of Programing • Computer Program • software • SDLC • Computer Programing • Types of Programing languages • Cataogries of Porgramer • Types of Traslators • Source code and Object code • Fitch-Decode-Execute Cyle • Phases of Program Execution • Types of programing errors
  • 3. Basic concepts of C++ • What is C++ • Difference between C & C++ • Brief history of C++ • IDEs for C++ • Online IDEs for C++ • Basic elements of programing languages • Basic structure of C++ • Course References
  • 4. ........... ........... ........... ........... ........... Porgraming language Program (set of instructions) Programer Program, Programmer & Programing Language Computer
  • 5. Computer Program • A proper sequence of instructions designed to perform a specific task on the computer is called program
  • 6. What is the difference between program and Programme
  • 7. Software Software: It is a term that includes the following : 1. Set of programs 2. Installation Manual 3. Documentation Examples: • MS Word • Adobe Photoshop • Calculator • Windows • Antivirus
  • 8. Calculator software Div Program Mul Program Sub Program Add Program Calculator is a software which consists of programs (Div, Mul, Sub and Add)
  • 9. Software Development Life Cyle (SDLC) • SDLC is a process that consists of a series of steps to develop a computer software • SDLC is also called Sofware Development Process (SDP)
  • 10. Computer Programing • The act or process of writing programs • Computer programming is the process of designing and building an executable computer program for accomplishing a specific computing task. Programming process: involves 1. Requirements analysis 2. Drawing flowcharts 3. Generating algorithms 4. Implementation of algorithms in a chosen programming language (Coding) 5. Testing & Debugging 6. Documentation
  • 11. What is the difference between programing and coding What is the difference between program and Algorithm
  • 12. Programing Language • A soruce of communicaton with the computer • The computer language used to create set of programs Parts of a Language: • Syntax: Refers to grammatical structure of the language • Sementics: Refers to the meanging of the words in the languge Types: 1. Machine Language 2. Assembly Language 3. High Level Language
  • 13. Which was the first computer programing language
  • 14. Machine Language • Programming language that can be directly understood and executed by a CPU of computer without conversion (translation) • consits of 0 and 1 • Also called Binary or low level language
  • 15. Assembly Language • A programming language that consists of instructions that are mnemonic codes for corresponding machine language instructions • Assembler is used to convert assembly language into machine language • Mnemonics code may be § SUM § SUB § MUL § LOAD § MOV
  • 16. High Level Language • The type of programing languge which is easy to understand and similar english language is called high level language Examples: § C § C++ § Java § C# § Python
  • 17.
  • 18. 1.Describe brief history of progriaming languages. 2. What are the generations of programing languages. 3.What is paradiagm? describe programing pargdigms.
  • 19. Computer Programer • A person who is expert to write a program in any programing language • A person who creates computer software • Also called software developer or software engineer Catagoreis q Windows Applications Developer q Web Developer q Mobile Apps Developer q Games Developer
  • 20. Who was the first computer programmer?
  • 21. Windows Application Developer Ø Develop softwares run on windows Ø Also known as q Desktop Applications Developer q Database Developer Languages Java, C++,VB.Net, C#, Python
  • 22. Web Developer Ø Develop websites and web apps Ø these require web browser to run languages HTML, Javascript,C/C++, ASP.NET, PHP, Python, Ruby
  • 23. Mobile Apps Developer Ø Develope apps for mobile phone such as android and iphpne Languages Android, Swift (for iOS), Objective C, HTML5, Java, C#
  • 24. Games Developer Ø Develop games Ø Games my be 2D or 3D
  • 25. • The type of program used to convert HLL into LLL • The type of program used to convert source code into equal object code Types 1. Compiler 2. Interpreter Translators
  • 26. Difference b/w Source code & Object code
  • 29. • The instruction cycle (also known as the fetch–decode–execute cycle or the fetch- execute cycle) • It is the basic operational process of a computer system. • This cycle is repeated continuously by a computer's CPU from boot-up until the computer has shut down. Fetch - Decode- Execute Cyle
  • 30. 1.Retrieves a program instruction from its memory 3. Determines what actions the instruction describes 2. Carries out those actions Fetch - Decode- Execute Cyle
  • 31. Phases of C++ Program Execution
  • 32.
  • 33. Why programing errors are called “Bugs” What is the difference b/w tesing & de-bugging
  • 34.
  • 35.
  • 36.
  • 37.
  • 38. What is C++? • Middle level language: consits of low and high level programing • General purpose: Used to develop any type of applications like desktop, web and mobile • Hybrid language: Supports both structural and Object oriented paradigm • Extension of C: OOP is added to C to enhance it to C++ • Case Sensitive: Smal and Capital letters are considered different • Compiled language: C++ programs are converted into object code through compiler
  • 39. What does ++ mean in “C++”?
  • 40. Difference between C & C ++ S# C C++ 1 supports structure programing paradigm supports both structure and object oriented paradigm 2 procedural programing language Object oridented programing language 3 subset of C++ superset of C 4 function overloading not possible function overloading possible 5 namespace not available namesapce avilable
  • 41. Difference b/w C & C ++ C OOP C++
  • 42. Brief history of C++ BCPLB C C++ • BCPL was developed by Master Martin Richards in1967 • B was developed by Ken Thomson in 1969 • C was developed by Dennis Ritche in 1972 • C has many concepts of BCPL & B • C++ was devloped by BJarnestroustrup in 1979 • First name of C++ was “C with classes” • The name was changed to C++ in 1983 • C++ is an extension of C language OOP +
  • 43. IDEs for C++ • Codeblocks • Dev C++ • Eclipse • Visual Studio
  • 44. 1.Code, Compile & Run 2.C++ Shell 3.Visual C++ Compiler Online 4.JDoodle - free Online Compiler 5.Free Online IDE and Terminal
  • 45. Basic Elements of a Programing Language • Programing enviromnet • Basic structure • Data types • Variables • Keywords • Basic operators • Decision making • Loops • Numbers & Characters • Arrays • Strings • Functions • File Input/Output
  • 46. • Line 1 & Line 2 : pre-processor directives • Line 3 : Execution begins from main function • Line 4 : Start of main body • Line 5 : Output statement • Line 6 : Return statement • Line 7 : End of main body Basic Structure of C++
  • 47. Course Refernces • Object Oriented Programing by Robert Lafore • C++ how to program by Deitel & dietel • OOP by Aikman series • C/C++ by Professor Tariq Siddique • www.CPlusPlus.com • www.Lerancpp.com • www.Tutorialspoint.com