C, C++ Lectureflow
C, C++ Lectureflow
Introduction to student
Working on Assignment
Career in IT
Understanding Student Login of TOPS ERP
Using Lab
Introduction to C
What is Language?
What is programming and program?
Fundamental of Algorithms and Flowchart
Real world problems - get solution via programs
Practical Example: 1. Write a Flow chart of real problems - Days to month conversion system.
Data Types and Variables - Data Types, Void Data Types,
History of C
Compiler and interpreter
environment setup
Basic Syntax
Type Modifiers,
Basic Structure of C Programs
Variables
Importance of C
Fundamentals of C
Difference between turbo C and Dev C/C++
Practical Example : 1. Write a program of scanf 2. Write a program to demonstrate escape sequence
3. Write a program to demonstrate comments
Comments
Keywords
Escape Sequence
Practical Example: 1. Write a program to print (Hello World). 2. Write a program to print the sum of
two numbers. 3. Write a program to exchange values of two variables using the 3rd variable. 4. Write
a program to convert days into years and years into days.
Page I
Variables
Basic Structure of C Programs
Importance of C
Fundamentals of C
Difference between turbo C and Dev C/C++
Practical Example : 1. Write a program of scanf 2. Write a program to demonstrate escape sequence
3. Write a program to demonstrate comments
Comments
Keywords
Escape Sequence
Practical Example: 1. Write a program to print (Hello World). 2. Write a program to print the sum of
two numbers. 3. Write a program to exchange values of two variables using the 3rd variable. 4. Write
a program to convert days into years and years into days.
Page II
Arrays and functions
Practical Example : 1. Write a c program to arrange accepted numbers in ascending and descending
order using array. 2. Write a c program for multiplication of matrix 3. Write a c program for addition
of two matrix.
Strings
String Functions : Theoretical Explanation
Strlen
Strrev
Strcat
Strcmp
Practical Example: 1. Find the frequency of a character in a string 2. Find the length of a string 3.
Find the number of vowels, consonants, digits and white spaces 4. Write a program to copy string 5.
Write a program to concatenate two strings 6. Write a program to remove all characters in a string
except alphabets 7. Find the length of a string without using inbuilt function 8. Write a program to
reverse string without using inbuilt function
Pointers
Pointers arithmetic
Practical Example: 1. Assigning addresses to Pointers 2. Get Value of Thing Pointed by Pointers 3.
Changing Value Pointed by Pointers
Structure and unions
Practical Example: 1. Write a program to demonstrate structure 2. Write a program to demonstrate
structure with array 3. Write a program to demonstrate structure of array
Practical Example: 1. Write a program to demonstrate structure within structure 2. Write a program
to demonstrate structure with function 3. Write a program to demonstrate difference between
structure and union
File handling
File I/O, Writing and reading file
Practical Example : 1. Write a program to read the names and marks of n numbers of students and
store them into a file. 2. C program to write all the members of an array of structures to a file using
fwrite(). Read the array from the file and display on the screen
Page III
Module 6) C,C++ - Programming with C++ 12
Practical Examples: 1. Write a program to check whether entered number is even or not using if..else
statement in C++ 2. Write a menu - driven program to calculate the area of the circle,rectangle and
triangle. 3. Write a program to calculate factorial of given number using for loop 4. Write a program
to print the fibonacci series using while loop 5. Write a program to check whether the given number
is palindrome using do..while loop. 6. Write a program to demonstrate jumping statements
Array
Types of Array
String
Class and pointer
Class and objects
Practical Example: 1. Write a program to demonstrate pointer with class 2. Write a program to
demonstrate dynamic object using new keyword
Member Function
Comparisons of class and object
Namespace
Scope resolution operator
Class and arrays : 1) Array within class 2) Array of objects
Practical Example: 1. Write a program to print the score card of two students using an array of
objects.
Practical Example: 4. Write a program to demonstrate pass object to a function 5. Write a program to
demonstrate return object from function
Encapsulation
Static Keyword
Constructors and Destructors
Types of constructors
Difference between constructor and destructor
Practical Example: 1. Write a program to demonstrate difference between constructor and destructor
2. Write a program to demonstrate copy constructor
Importance of inheritance
Access modifiers
Types of inheritance 1 - Single level 2 - Multi-level 3 - Multiple 4- Hierarchical 5- Hybrid
Practical Example : Write a program to implement single level inheritance 2. Write a program to
demonstrate single level inheritance in private mode 3. Write a program to demonstrate the
ambiguity in single level inheritance 4. Write a program to demonstrate multilevel inheritance 5.
Write a program to demonstrate multiple inheritance 6. Write a program to demonstrate the
hierarchical inheritance 7. Write a program to demonstrate the hybrid inheritance
Practical Example: 1) Write a program to demonstrate constructor invocation in inheritance
Types of polymorphism
Compile time
Run time
Abstract class
Aggregation
Page IV
Practical Example: 1. Write a program to demonstrate function overloading with different types of
arguments 2. Write a program to demonstrate function overloading with default arguments 3. Write a
program to show the constructor function overloading
Class templates
Function templates
Page V