C & C++ Programming

C & C++ Training in Nepal

Course Duration: 30 hours

Ellipse Institute of IT is Famous IT Institute for C, C++ Training in Nepal. C, C++ is a general-purpose, imperative computer programming language. It supports structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations.

Getting started

  • What is C?
  • Background
  • Sample Program
  • Components of a C Program
  • Examples
  • Data Types
  • Variables
  • Naming Conventions for C Variables
  • Printing and Initializing Variables
  • Array Examples
  • Compiling and Executing a C Program

Functions And Operators

  • Examples of C Functions
  • Functions
  • sum Invoked from main
  • Invoking Functions
  • Elementary Operators
  • The operator= Operators
  • Operators
  • The Conditional Operator
  • Increment and Decrement Examples
  • Increment and Decrement Operators

Control Flow Construct

  • Examples of Expressions
  • if
  • if else
  • while
  • for
  • Endless Loops
  • do while
  • break and continue
  • switch
  • else if

The C Preprocessor

  • #define
  • Macros
  • #include
  • Conditional Compilation
  • #ifdef
  • #ifndef

Simple I/O

  • Character I/O
  • End of File
  • Simple I/O Examples
  • Simple I/O Redirection
  • I/O with Character Arrays

Separate compilation

  • Compiling Over Several Files
  • Function Scope
  • File Scope
  • Program Scope
  • Local static
  • register and extern
  • Object Files
  • Libraries
  • The C Loader
  • Header Files

Pointers(Part 1)

  • Fundamental Concepts
  • Pointer Operators and Operations
  • Changing an Argument with a Function Call
  • Pointer Arithmetic
  • Array Traversal
  • String Functions with Pointers
  • Pointer Difference
  • Prototypes for String Parameters
  • Relationship Between an Array and a Pointer
  • The Pointer Notation *p++

Structures

  • Fundamental Concepts
  • Describing a Structure
  • Creating Structures
  • Operations on Structures
  • Functions Returning Structures
  • Passing Structures to Functions
  • Pointers to Structures
  • Array of Structures
  • Functions Returning a Pointer to a Structure

File I/O

  • System Calls vs. Library Calls
  • Opening Disk Files
  • fopen
  • I/O Library Functions
  • Copying a File
  • Character Input vs. Line Input
  • scanf
  • printf
  • fclose
  • Servicing Errors - errno.h
  • feof

I/O with structures

  • A Database Application
  • The menu Function
  • The fwrite Function
  • The create_db Function
  • The fread Function
  • The print_db Function
  • fseek
  • The retrieve_db Function
  • fflush and ftell

Useful Library Functions

  • strstr
  • strchr, strrchr
  • system
  • strtok
  • strspn, strcspn
  • Math Functions
  • Character Testing Functions
  • exit and atexit
  • signal
  • memcpy and memset
  • qsort
  • Binary Search - bsearch

The languages of object Orientation

  • What Is an Object?
  • What Is a Class?
  • Encapsulation
  • Data Hiding
  • The Public Interface
  • Relationships Among Classes
  • Inheritance
  • Polymorphism
  • Object-Oriented Design

Fundamental of classes

  • Data Types
  • User Defined Data Types
  • Using the Class Concept
  • Defining a Class
  • public and private Access Levels
  • The Scope Resolution Operator ::
  • Using Class Objects Like Built-in Types
  • Scope
  • Constructors
  • Member Initialization Lists
  • Destructors
  • Array of Objects
  • Pointers
  • The this Pointer
  • Passing Objects to Functions
  • Returning Objects From Functions
  • static Class Members

Operator overloading

  • Introduction
  • Rules for Operator Overloading
  • Rationale for Operator Overloading
  • Overloading Member Functions
  • Overloading Non-Member Functions
  • friend Functions
  • The Copy Constructor
  • The Assignment Operator
  • Overloading [ ]
  • Overloading Increment and Decrement Operators
  • const Objects and References

String

  • Fundamental Concepts
  • Aggregate Operations
  • String Functions

Inheritance

  • Introduction
  • Public Base Classes
  • The protected Access Level
  • Member Initialization Lists
  • What Isn’t Inherited
  • Assignments Between Base and Derived Objects
  • Compile-Time vs. Run-Time Binding
  • virtual Functions
  • Polymorphism
  • virtual Destructors
  • Pure virtual Functions
  • Abstract Base Classes
  • An Extended Inheritance Example

I/O in C++

  • The iostream Library
  • Predefined Streams
  • Overloading operator<<
  • Overloading operator>>
  • Manipulators
  • Stream States
  • Formatted I/O
  • Disk Files
  • Reading and Writing Objects