SlideShare a Scribd company logo
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 (20)

PDF
Scope, binding, papameter passing techniques
CareerMonk Publications
 
PDF
Data structure using c++
Prof. Dr. K. Adisesha
 
PDF
Basic Information About C language PDF
Suraj Das
 
PPTX
c & c++ logic building concepts practice.pptx
rawatsatish0327
 
PDF
Starting Out with C++: Early Objects 9th Edition by Tony Gaddis (eBook PDF)
anryabrica
 
PDF
Starting Out with C++: Early Objects 9th Edition by Tony Gaddis (eBook PDF)
crancegaisie
 
PDF
APS PGT Computer Science SylIabus
Knowledge Center Computer
 
PDF
(eBook PDF) Starting Out with C++: From Control Structures through Objects 8t...
tdcpastwa
 
PDF
(eBook PDF) Starting Out with C++: From Control Structures through Objects, B...
cursonshiwaa
 
PPTX
Software fundamentals
Susan Winters
 
PDF
Starting Out with C++: Early Objects 9th Edition by Tony Gaddis (eBook PDF)
moldtkhanizw
 
PDF
(eBook PDF) Starting Out with C++: Early Objects 9th Edition
jxlhbjl0240
 
PDF
Starting Out with C++: Early Objects 9th Edition by Tony Gaddis (eBook PDF)
vetrfzp2311
 
PDF
(eBook PDF) Starting Out with C++: Early Objects 9th Edition
xltatno
 
PPTX
Computer science principals in terms of Programming
Umair Jameel
 
PDF
C, C++ & Data Structures course training institute ameerpet hyderabad
Sathya Technologies
 
PDF
Starting Out with C++: Early Objects 9th Edition by Tony Gaddis (eBook PDF)
hejwiaz3980
 
PDF
Data structure and Alogorithm analysis unit one
DawitAbera8
 
PPT
C intro
Kamran
 
PPTX
Technical Interview
prashant patel
 
Scope, binding, papameter passing techniques
CareerMonk Publications
 
Data structure using c++
Prof. Dr. K. Adisesha
 
Basic Information About C language PDF
Suraj Das
 
c & c++ logic building concepts practice.pptx
rawatsatish0327
 
Starting Out with C++: Early Objects 9th Edition by Tony Gaddis (eBook PDF)
anryabrica
 
Starting Out with C++: Early Objects 9th Edition by Tony Gaddis (eBook PDF)
crancegaisie
 
APS PGT Computer Science SylIabus
Knowledge Center Computer
 
(eBook PDF) Starting Out with C++: From Control Structures through Objects 8t...
tdcpastwa
 
(eBook PDF) Starting Out with C++: From Control Structures through Objects, B...
cursonshiwaa
 
Software fundamentals
Susan Winters
 
Starting Out with C++: Early Objects 9th Edition by Tony Gaddis (eBook PDF)
moldtkhanizw
 
(eBook PDF) Starting Out with C++: Early Objects 9th Edition
jxlhbjl0240
 
Starting Out with C++: Early Objects 9th Edition by Tony Gaddis (eBook PDF)
vetrfzp2311
 
(eBook PDF) Starting Out with C++: Early Objects 9th Edition
xltatno
 
Computer science principals in terms of Programming
Umair Jameel
 
C, C++ & Data Structures course training institute ameerpet hyderabad
Sathya Technologies
 
Starting Out with C++: Early Objects 9th Edition by Tony Gaddis (eBook PDF)
hejwiaz3980
 
Data structure and Alogorithm analysis unit one
DawitAbera8
 
C intro
Kamran
 
Technical Interview
prashant patel
 

More from ChereLemma2 (9)

PPTX
Ch5 Project Scope Management xxxxxxxxx.pptx
ChereLemma2
 
PPTX
Lecture - Project Scope Management slide
ChereLemma2
 
PPTX
Ch-3(b) - Variables and Data types in C++.pptx
ChereLemma2
 
PPTX
Chapter 6 - Modular Programming- in C++.pptx
ChereLemma2
 
PPTX
User Defined Datatypes in C++ (Union, enum, class)
ChereLemma2
 
PDF
Fundamentals of Computer Programming - Flow of Control I
ChereLemma2
 
PPTX
File Management and manipulation in C++ Programming
ChereLemma2
 
PDF
Basic Concepts of Programming - Practical Exercises
ChereLemma2
 
PDF
Fundamentals of Computer Programming Summary of Flow Controls
ChereLemma2
 
Ch5 Project Scope Management xxxxxxxxx.pptx
ChereLemma2
 
Lecture - Project Scope Management slide
ChereLemma2
 
Ch-3(b) - Variables and Data types in C++.pptx
ChereLemma2
 
Chapter 6 - Modular Programming- in C++.pptx
ChereLemma2
 
User Defined Datatypes in C++ (Union, enum, class)
ChereLemma2
 
Fundamentals of Computer Programming - Flow of Control I
ChereLemma2
 
File Management and manipulation in C++ Programming
ChereLemma2
 
Basic Concepts of Programming - Practical Exercises
ChereLemma2
 
Fundamentals of Computer Programming Summary of Flow Controls
ChereLemma2
 
Ad

Recently uploaded (20)

PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PPTX
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PDF
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
PDF
Geographical Diversity of India 100 Mcq.pdf/ 7th class new ncert /Social/Samy...
Sandeep Swamy
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PPTX
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PPTX
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
Geographical Diversity of India 100 Mcq.pdf/ 7th class new ncert /Social/Samy...
Sandeep Swamy
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
Ad

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