SlideShare a Scribd company logo
1 of 22
Fundamentals of
Computer Programming
Summary of Key Concepts
Chere L. (M.Tech)
Lecturer, SWEG, AASTU
Chapter One
Basic Concepts of Programming
Chapter 1
2
Outline
 Basics of Program Development
 What is computer programming?
 Reasons to study programming
 An Overview of Program Development Life Cycle
 Problem Solving Skills
 Algorithm Design using flow chart and Pseudo codes
 Programming Languages Generations
 Programming Languages Paradigms
Chapter 1
3
Chapter Two
Basic Programming Constructors
Chapter 1
4
Outline
 Structure (Anatomy) of C++ program
 Preprocessor and library functions
 main() function
 Statement and Block
 Compilation Process and running programs:
 Basic Elements of program (Syntax and Semantics)
 Input/output standards
 Variables and Data types, Constants
 Operators and expression
 Debugging and Programming Errors
 Formatting Program {Comment, braces, Indentation and White space}
 Formatted Input-Output
Chapter 2
5
Chapter Three
Program Flow Control
Chapter 1
6
 Introduction to flow controls
 Branching flow controls (selection statements)
 One-way selection
 Two-way selection
 Multiple selection
 switch statement
 Iterative flow controls (Looping statements)
 for loop
 while loop
 do . . . while loop
 Jumping statements
- break statement, continue statement, goto statement
 Program termination statements (return, exit, abort)
Outline
Chapter Four
Array and String
Chapter 1
8
 Introduction to array - foundation Concepts
 Array Declaration
 One Dimension Array and Two Dimension Array
 Array Initialization (During declaration and After declaration)
 One Dimension Array and Two Dimension Array
 Accessing Array Elements
 Assignment, Copying, Input/Output, and Other Array
manipulation
 An Overview of Strings
 String Declaration and Initialization
 String Manipulation
 I/O operation, Copying, Compare, Concatenate, Case
conversion, string length, string search, string replace, string
remove etc.
Outline
Chapter Five
Pointers
Chapter 1
10
Outline
▪ Variables in a Memory
▪ Basics of Pointers
▪ What is pointer?
▪ Why pointers
▪ Pointer Declaration
▪ Pointers Initialization
▪ Pointer Operators (& and *)
▪ Types of Pointers
 NULL Pointer
 Void pointers
 Pointers of Pointer
 Dangling Pointers
 Wild Pointers
▪ Pointers Expression
 Pointers Arithmetic
 Pointers Comparison
▪ Pointers and Constants
▪ Pointers and Arrays/Strings
▪ Pointers with Function
 Parameter pass-by-address
 Pointer as return type/value
▪ Dynamic Memory Management
 Memory Allocation (new)
 Memory Allocation (delete)
▪ Smart Pointers (new)
Chapter 5 11
Chapter Six
Function
Chapter 1
12
 Function Declaration and Definition (prototype)
 Type of functions (built in and user-defined)
 Function Calling and return value
 Calling by (variable, constant, literal, other function)
 Return value (variable, literal, expression, other function)
 Function Parameter
 Syntax (formal syntax and informal/unusual style )
 Types of Parameter (Actual parameters and formal
parameters)
 Parameter passing (by value, reference, pointer)
 Default parameter (order of parameter will matter)
Outline
Parameter pass
by pointer will
discussed in later
chapter
 Categories of user-defined functions (based on return value &
parameters)
 Function Overloading
 Variable scope (local & global) & resolution operator
 Special types of function
 Inline function
 Recursive function (factorial, Fibonacci series, binary search,
Euclidean algorithm)
 Function with array
 Calling function with array elements
 Passing Array as parameter (formal and actual parameter)
1D &2D
 Array as a return
Outline
Chapter Seven
Structure
Chapter 1
15
 Introduction to User Defined Data type (structure)
 Defining structure (with tag and without tag)
 Declaring structure variable
 At the time of defining structures {definition + declaration}
 After defining the structures
 Initializing structure elements
 While you defining the structures {definition + declaration
+ initialization}
 During structure variable declaration {declaration +
initialization}
 Accessing structure elements
 Array inside structure (as structure element)
 Nested structure
 Defining structure within structure
 Using structure variable other structure definition
Outline
 Array of structure
 Structure with function
 Structure variable as parameters
 Returning structure variable
 Other user defined data type
 Class and Object
 Anonymous unions (union)
 Enumerated types (enum)
 Typedef
Outline
Chapter Eight
File Handling
Chapter 1
18
 An Overview File Management
• Types of file - text and binary file
• Declaration of file stream object
• Opening and closing files
• Reading from and Writing to files
 Text files
 Binary files
• File modes
• File functions
• Files offset
• Files access methods
 Sequential access
 Random access
Outline
Chapter Nine
Templates and Vectors
Chapter 1
20
 An Overview File Management
Outline
Thank You
For Your Attention!!
22

More Related Content

Similar to Fundamentals of Computer Programming in C++ Key Concepts

Sylabus.pptx
Sylabus.pptxSylabus.pptx
Sylabus.pptxGetege
 
.NET 4 Demystified - Sandeep Joshi
.NET 4 Demystified - Sandeep Joshi.NET 4 Demystified - Sandeep Joshi
.NET 4 Demystified - Sandeep JoshiSpiffy
 
Core java Training in Chennai
Core java Training in ChennaiCore java Training in Chennai
Core java Training in ChennaiCore Mind
 
Android classes-in-pune-syllabus
Android classes-in-pune-syllabusAndroid classes-in-pune-syllabus
Android classes-in-pune-syllabuscncandrwebworld
 
Android training in Nagpur
Android training in Nagpur Android training in Nagpur
Android training in Nagpur letsleadsand
 
C LANGUAGE - BESTECH SOLUTIONS
C LANGUAGE - BESTECH SOLUTIONSC LANGUAGE - BESTECH SOLUTIONS
C LANGUAGE - BESTECH SOLUTIONSBESTECH SOLUTIONS
 
Java classes in karve nagar pune
Java classes in karve nagar puneJava classes in karve nagar pune
Java classes in karve nagar puneletsleadsand
 
EST 102 C P.pptx
EST 102 C P.pptxEST 102 C P.pptx
EST 102 C P.pptxsreekala47
 
An Overview Of Python With Functional Programming
An Overview Of Python With Functional ProgrammingAn Overview Of Python With Functional Programming
An Overview Of Python With Functional ProgrammingAdam Getchell
 
Python django flash_Course Content.pdf
Python django flash_Course Content.pdfPython django flash_Course Content.pdf
Python django flash_Course Content.pdfMultisoft Systems
 
SAP ABAP 4 Online Training | SAP ABAP Training
SAP ABAP 4 Online Training | SAP ABAP TrainingSAP ABAP 4 Online Training | SAP ABAP Training
SAP ABAP 4 Online Training | SAP ABAP TrainingExpertSoft Trainings
 
PhD Presentation
PhD PresentationPhD Presentation
PhD Presentationmskayed
 
Tcs Technical Question
Tcs Technical QuestionTcs Technical Question
Tcs Technical QuestionVinay Kumar
 
B sc it syit sem 3 sem 4 syllabus as per mumbai university
B sc it syit sem 3 sem 4 syllabus as per mumbai universityB sc it syit sem 3 sem 4 syllabus as per mumbai university
B sc it syit sem 3 sem 4 syllabus as per mumbai universitytanujaparihar
 
Chapter 7 (Part I) - User Defined Datatypes.pdf
Chapter 7 (Part I) - User Defined Datatypes.pdfChapter 7 (Part I) - User Defined Datatypes.pdf
Chapter 7 (Part I) - User Defined Datatypes.pdfTamiratDejene1
 
Php Training Canada
Php Training CanadaPhp Training Canada
Php Training CanadaShaheel Khan
 

Similar to Fundamentals of Computer Programming in C++ Key Concepts (20)

Sylabus.pptx
Sylabus.pptxSylabus.pptx
Sylabus.pptx
 
Core java online training
Core java online trainingCore java online training
Core java online training
 
Structured Languages
Structured LanguagesStructured Languages
Structured Languages
 
.NET 4 Demystified - Sandeep Joshi
.NET 4 Demystified - Sandeep Joshi.NET 4 Demystified - Sandeep Joshi
.NET 4 Demystified - Sandeep Joshi
 
Core java Training in Chennai
Core java Training in ChennaiCore java Training in Chennai
Core java Training in Chennai
 
Android classes-in-pune-syllabus
Android classes-in-pune-syllabusAndroid classes-in-pune-syllabus
Android classes-in-pune-syllabus
 
Android training in Nagpur
Android training in Nagpur Android training in Nagpur
Android training in Nagpur
 
C LANGUAGE - BESTECH SOLUTIONS
C LANGUAGE - BESTECH SOLUTIONSC LANGUAGE - BESTECH SOLUTIONS
C LANGUAGE - BESTECH SOLUTIONS
 
Java classes in karve nagar pune
Java classes in karve nagar puneJava classes in karve nagar pune
Java classes in karve nagar pune
 
EST 102 C P.pptx
EST 102 C P.pptxEST 102 C P.pptx
EST 102 C P.pptx
 
An Overview Of Python With Functional Programming
An Overview Of Python With Functional ProgrammingAn Overview Of Python With Functional Programming
An Overview Of Python With Functional Programming
 
Python django flash_Course Content.pdf
Python django flash_Course Content.pdfPython django flash_Course Content.pdf
Python django flash_Course Content.pdf
 
SAP ABAP 4 Online Training | SAP ABAP Training
SAP ABAP 4 Online Training | SAP ABAP TrainingSAP ABAP 4 Online Training | SAP ABAP Training
SAP ABAP 4 Online Training | SAP ABAP Training
 
C Programming - Refresher - Part IV
C Programming - Refresher - Part IVC Programming - Refresher - Part IV
C Programming - Refresher - Part IV
 
Course Content - CETPA
Course Content - CETPACourse Content - CETPA
Course Content - CETPA
 
PhD Presentation
PhD PresentationPhD Presentation
PhD Presentation
 
Tcs Technical Question
Tcs Technical QuestionTcs Technical Question
Tcs Technical Question
 
B sc it syit sem 3 sem 4 syllabus as per mumbai university
B sc it syit sem 3 sem 4 syllabus as per mumbai universityB sc it syit sem 3 sem 4 syllabus as per mumbai university
B sc it syit sem 3 sem 4 syllabus as per mumbai university
 
Chapter 7 (Part I) - User Defined Datatypes.pdf
Chapter 7 (Part I) - User Defined Datatypes.pdfChapter 7 (Part I) - User Defined Datatypes.pdf
Chapter 7 (Part I) - User Defined Datatypes.pdf
 
Php Training Canada
Php Training CanadaPhp Training Canada
Php Training Canada
 

More from ChereLemma2

Ch5 Project Scope Management xxxxxxxxx.pptx
Ch5 Project Scope Management xxxxxxxxx.pptxCh5 Project Scope Management xxxxxxxxx.pptx
Ch5 Project Scope Management xxxxxxxxx.pptxChereLemma2
 
Lecture - Project Scope Management slide
Lecture - Project Scope Management slideLecture - Project Scope Management slide
Lecture - Project Scope Management slideChereLemma2
 
Ch-3(b) - Variables and Data types in C++.pptx
Ch-3(b) - Variables and Data types in C++.pptxCh-3(b) - Variables and Data types in C++.pptx
Ch-3(b) - Variables and Data types in C++.pptxChereLemma2
 
Chapter 6 - Modular Programming- in C++.pptx
Chapter 6 - Modular Programming- in C++.pptxChapter 6 - Modular Programming- in C++.pptx
Chapter 6 - Modular Programming- in C++.pptxChereLemma2
 
User Defined Datatypes in C++ (Union, enum, class)
User Defined Datatypes in C++  (Union, enum, class)User Defined Datatypes in C++  (Union, enum, class)
User Defined Datatypes in C++ (Union, enum, class)ChereLemma2
 
Fundamentals of Computer Programming - Flow of Control I
Fundamentals of Computer Programming - Flow of Control IFundamentals of Computer Programming - Flow of Control I
Fundamentals of Computer Programming - Flow of Control IChereLemma2
 
File Management and manipulation in C++ Programming
File Management and manipulation in C++ ProgrammingFile Management and manipulation in C++ Programming
File Management and manipulation in C++ ProgrammingChereLemma2
 
Basic Concepts of Programming - Practical Exercises
Basic Concepts of Programming - Practical ExercisesBasic Concepts of Programming - Practical Exercises
Basic Concepts of Programming - Practical ExercisesChereLemma2
 
Fundamentals of Computer Programming Summary of Flow Controls
Fundamentals of Computer Programming  Summary of Flow ControlsFundamentals of Computer Programming  Summary of Flow Controls
Fundamentals of Computer Programming Summary of Flow ControlsChereLemma2
 

More from ChereLemma2 (9)

Ch5 Project Scope Management xxxxxxxxx.pptx
Ch5 Project Scope Management xxxxxxxxx.pptxCh5 Project Scope Management xxxxxxxxx.pptx
Ch5 Project Scope Management xxxxxxxxx.pptx
 
Lecture - Project Scope Management slide
Lecture - Project Scope Management slideLecture - Project Scope Management slide
Lecture - Project Scope Management slide
 
Ch-3(b) - Variables and Data types in C++.pptx
Ch-3(b) - Variables and Data types in C++.pptxCh-3(b) - Variables and Data types in C++.pptx
Ch-3(b) - Variables and Data types in C++.pptx
 
Chapter 6 - Modular Programming- in C++.pptx
Chapter 6 - Modular Programming- in C++.pptxChapter 6 - Modular Programming- in C++.pptx
Chapter 6 - Modular Programming- in C++.pptx
 
User Defined Datatypes in C++ (Union, enum, class)
User Defined Datatypes in C++  (Union, enum, class)User Defined Datatypes in C++  (Union, enum, class)
User Defined Datatypes in C++ (Union, enum, class)
 
Fundamentals of Computer Programming - Flow of Control I
Fundamentals of Computer Programming - Flow of Control IFundamentals of Computer Programming - Flow of Control I
Fundamentals of Computer Programming - Flow of Control I
 
File Management and manipulation in C++ Programming
File Management and manipulation in C++ ProgrammingFile Management and manipulation in C++ Programming
File Management and manipulation in C++ Programming
 
Basic Concepts of Programming - Practical Exercises
Basic Concepts of Programming - Practical ExercisesBasic Concepts of Programming - Practical Exercises
Basic Concepts of Programming - Practical Exercises
 
Fundamentals of Computer Programming Summary of Flow Controls
Fundamentals of Computer Programming  Summary of Flow ControlsFundamentals of Computer Programming  Summary of Flow Controls
Fundamentals of Computer Programming Summary of Flow Controls
 

Recently uploaded

Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 

Recently uploaded (20)

Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 

Fundamentals of Computer Programming in C++ Key Concepts

  • 1. Fundamentals of Computer Programming Summary of Key Concepts Chere L. (M.Tech) Lecturer, SWEG, AASTU
  • 2. Chapter One Basic Concepts of Programming Chapter 1 2
  • 3. Outline  Basics of Program Development  What is computer programming?  Reasons to study programming  An Overview of Program Development Life Cycle  Problem Solving Skills  Algorithm Design using flow chart and Pseudo codes  Programming Languages Generations  Programming Languages Paradigms Chapter 1 3
  • 4. Chapter Two Basic Programming Constructors Chapter 1 4
  • 5. Outline  Structure (Anatomy) of C++ program  Preprocessor and library functions  main() function  Statement and Block  Compilation Process and running programs:  Basic Elements of program (Syntax and Semantics)  Input/output standards  Variables and Data types, Constants  Operators and expression  Debugging and Programming Errors  Formatting Program {Comment, braces, Indentation and White space}  Formatted Input-Output Chapter 2 5
  • 6. Chapter Three Program Flow Control Chapter 1 6
  • 7.  Introduction to flow controls  Branching flow controls (selection statements)  One-way selection  Two-way selection  Multiple selection  switch statement  Iterative flow controls (Looping statements)  for loop  while loop  do . . . while loop  Jumping statements - break statement, continue statement, goto statement  Program termination statements (return, exit, abort) Outline
  • 8. Chapter Four Array and String Chapter 1 8
  • 9.  Introduction to array - foundation Concepts  Array Declaration  One Dimension Array and Two Dimension Array  Array Initialization (During declaration and After declaration)  One Dimension Array and Two Dimension Array  Accessing Array Elements  Assignment, Copying, Input/Output, and Other Array manipulation  An Overview of Strings  String Declaration and Initialization  String Manipulation  I/O operation, Copying, Compare, Concatenate, Case conversion, string length, string search, string replace, string remove etc. Outline
  • 11. Outline ▪ Variables in a Memory ▪ Basics of Pointers ▪ What is pointer? ▪ Why pointers ▪ Pointer Declaration ▪ Pointers Initialization ▪ Pointer Operators (& and *) ▪ Types of Pointers  NULL Pointer  Void pointers  Pointers of Pointer  Dangling Pointers  Wild Pointers ▪ Pointers Expression  Pointers Arithmetic  Pointers Comparison ▪ Pointers and Constants ▪ Pointers and Arrays/Strings ▪ Pointers with Function  Parameter pass-by-address  Pointer as return type/value ▪ Dynamic Memory Management  Memory Allocation (new)  Memory Allocation (delete) ▪ Smart Pointers (new) Chapter 5 11
  • 13.  Function Declaration and Definition (prototype)  Type of functions (built in and user-defined)  Function Calling and return value  Calling by (variable, constant, literal, other function)  Return value (variable, literal, expression, other function)  Function Parameter  Syntax (formal syntax and informal/unusual style )  Types of Parameter (Actual parameters and formal parameters)  Parameter passing (by value, reference, pointer)  Default parameter (order of parameter will matter) Outline Parameter pass by pointer will discussed in later chapter
  • 14.  Categories of user-defined functions (based on return value & parameters)  Function Overloading  Variable scope (local & global) & resolution operator  Special types of function  Inline function  Recursive function (factorial, Fibonacci series, binary search, Euclidean algorithm)  Function with array  Calling function with array elements  Passing Array as parameter (formal and actual parameter) 1D &2D  Array as a return Outline
  • 16.  Introduction to User Defined Data type (structure)  Defining structure (with tag and without tag)  Declaring structure variable  At the time of defining structures {definition + declaration}  After defining the structures  Initializing structure elements  While you defining the structures {definition + declaration + initialization}  During structure variable declaration {declaration + initialization}  Accessing structure elements  Array inside structure (as structure element)  Nested structure  Defining structure within structure  Using structure variable other structure definition Outline
  • 17.  Array of structure  Structure with function  Structure variable as parameters  Returning structure variable  Other user defined data type  Class and Object  Anonymous unions (union)  Enumerated types (enum)  Typedef Outline
  • 19.  An Overview File Management • Types of file - text and binary file • Declaration of file stream object • Opening and closing files • Reading from and Writing to files  Text files  Binary files • File modes • File functions • Files offset • Files access methods  Sequential access  Random access Outline
  • 20. Chapter Nine Templates and Vectors Chapter 1 20
  • 21.  An Overview File Management Outline
  • 22. Thank You For Your Attention!! 22