home-banner

SYLLABUS FOR C++

1. OVERVIEW

  • Object-Oriented Programming
  • Standard Libraries
  • The ANSI Standard
  • Learning C++
  • Use of C++

2. ENVIORNMENT SETUP

  • Try it Option Online
  • Local Environment Setup
  • Installing GNU C/C++ Compiler

3. BASIC SYNTAX

  • C++ Program Structure
  • Compile & Execute C++ Program
  • Semicolons & Blocks in C++
  • C++ Identifiers
  • C++ Keywords
  • Trigraphs
  • Whitespace in C++

4. COMMENTS IN C++

5. DATA TYPES

  • Primitive Built-in Types
  • typedef Declarations
  • Enumerated Types

6. VARIABLE TYPES

  • Variable Definition in C++
  • Variable Declaration in C++
  • Lvalues and Rvalues

7. VARIABLE SCOPE

  • Local Variables
  • Global Variables
  • Initializing Local and Global Variables

8. CONSTANTS/LITERALS

  • Integer Literals
  • Floating-point Literals
  • Boolean Literals
  • Character Literals
  • String Literals
  • Defining Constants

9. MODIFIER TYPES

  • Type Qualifiers in C++

10. STORAGE CLASSES

  • The auto Storage Class
  • The register Storage Class
  • The static Storage Class
  • The extern Storage Class
  • The mutable Storage Class

11. OPERATORS

  • Arithmetic Operators
  • Relational Operators
  • Logical Operators
  • Bitwise Operators
  • Assignment Operators
  • Misc Operators
  • Operators Precedence in C++

12. LOOP TYPES

  • While Loop
  • For Loop
  • Do…while Loop
  • Nested Loops
  • Loop Control Statements
  • Break Statement
  • Continue Statement
  • Goto Statement
  • The Infinite Loop

13. DECISION-MAKING STATEMENTS

  • If Statement
  • if…else Statement
  • if elseif else Statement
  • Switch Statement
  • Nested if Statement
  • The ? : Operator

14. FUNCTIONS

  • Defining a Function
  • Function Declarations
  • Calling a Function
  • Function Arguments
  • Call by Value
  • Call by Pointer
  • Call by Reference
  • Default Values for Parameters

15. NUMBERS

  • Defining Numbers in C++
  • Math Operations in C++
  • Random Numbers in C++

16. ARRAYS

  • Declaring Arrays
  • Initializing Arrays
  • Accessing Array Elements
  • Arrays in C++
  • Pointer to an Array
  • Passing Arrays to Functions
  • Return Array from Functions

17. STRINGS

  • The C-Style Character String
  • The String Class in C++

18. POINTERS

  • What are Pointers?
  • Using Pointers in C++
  • Pointers in C++
  • Null Pointers
  • Pointer Arithmetic
  • Pointers vs Arrays
  • Array of Pointers
  • Pointer to a Pointer
  • Passing Pointers to Functions
  • Return Pointer from Functions

19. REFERENCES

  • References vs Pointers
  • Creating References in C++
  • References as Parameters
  • Reference as Return Value

20. DATE AND TIME

  • Current Date and Time
  • Format Time using struct tm

21. BASIC INPUT/OUTPUT

  • I/O Library Header Files
  • The Standard Output Stream (cout)
  • The Standard Input Stream (cin)
  • The Standard Error Stream (cerr)
  • The Standard Log Stream (clog)

22. DATA STRUCTURES

  • Defining a Structure
  • Accessing Structure Members
  • Structures as Function Arguments
  • Pointers to Structures
  • The typedef Keyword

23. CLASSES AND OBJECTS

  • C++ Class Definitions
  • Define C++ Objects
  • Accessing the Data Members
  • Classes & Objects in Detail
  • Class Access Modifiers
  • The public Members
  • The private Members
  • The protected Members
  • Constructor & Destructor
  • Parameterized Constructor
  • The Class Destructor
  • Copy Constructor
  • Friend Functions
  • Inline Functions
  • This Pointer
  • Pointer to C++ Classes
  • Static Members of a Class

24. INHERITANCE

  • Base & Derived Classes
  • Access Control and Inheritance
  • Type of Inheritance
  • Multiple Inheritance

25. OVERLOADING (OPERATOR & FUNCTION)

  • Function Overloading in C++
  • Operators Overloading in C++
  • Overloadable/Non-overloadable Operators
  • Operator Overloading Examples
  • Unary Operators Overloading
  • Increment (++) and Decrement (- -) Operators
  • Binary Operators Overloading
  • Relational Operators Overloading
  • Input/Output Operators Overloading
  • ++ and – – Operators Overloading
  • Assignment Operators Overloading
  • Function Call () Operator Overloading
  • Subscripting [ ] Operator Overloading
  • Class Member Access Operator – > Overloading

26. POLYMORPHISM

  • Virtual Function
  • Pure Virtual Functions

27. DATA ABSTRACTION

  • Access Labels Enforce Abstraction
  • Benefits of Data Abstraction
  • Data Abstraction Example
  • Designing Strategy

28. DATA ENCAPSULATION

  • Data Encapsulation Example
  • Designing Strategy

29. INTERFACES

  • Abstract Class Example
  • Designing Strategy

30. DATA ABSTRACTION

  • Access Labels Enforce Abstraction
  • Benefits of Data Abstraction
  • Data Abstraction Example
  • Designing Strategy

31. DATA ENCAPSULATION

  • Data Encapsulation Example
  • Designing Strategy

32. INTERFACES

  • Abstract Class Example
  • Designing Strategy

33. FILES AND STREAMS

  • Opening a File
  • Closing a File
  • Writing to a File
  • Reading from a File
  • Read & Write Example
  • File Position Pointers

34. EXCEPTION HANDLING

  • Throwing Exceptions
  • Catching Exceptions
  • C++ Standard Exceptions
  • Define New Exceptions

35. DYNAMIC MEMORY

  • The new and delete Operators
  • Dynamic Memory Allocation for Arrays
  • Dynamic Memory Allocation for Objects

36. NAMESPACES

  • Defining a Namespace
  • The using directive
  • Discontiguous Namespaces
  • Nested Namespaces

37. EXCEPTION HANDLING

  • Throwing Exceptions
  • Catching Exceptions
  • C++ Standard Exceptions
  • Define New Exceptions

38. MULTITHREADING

  • Creating Threads
  • Terminating Threadsys
  • Passing Arguments to Threads
  • Joining and Detaching Threads