C++AnddatastructureusingC++
C++AnddatastructureusingC++
Teaching Guidelines for C, C++ & Data Structures Using C++ - PG-DAC AUGUST-13
Duration: 40 class room hours + 40 lab hours
Objective: To reinforce knowledge of C++ and Data Structure Concepts.
Session 2:
• Pointers
• Arrays
Session 3:
• Structures
• Unions
Session 4: (OOP Concepts)
Lecture
• Difference between C and C++
Session5:
Lecture
• Copy Constructors
• Polymorphism
• Overloading functions
• Overloading Operators
Assignment – Lab:
• Write Date and Time classes that allows you to add, subtract, read and print simple dates in
dd/mm/yyyy and time in hh:mm:ss forms. Use function overloading in your program.
• Assignments to overload =, ==, +, ++, --, <<, >> and [ ] operators.
Session 6:
Lecture
• Inheritance
• Type of Inheritances
Assignment – Lab:
• Design a hierarchy of computer printers. Use multiple inheritance in your hierarchy. Also use
friend functions and classes in your program.
Session 7:
• Run Time Polymorphism
• Virtual Functions
Assignment – Lab:
• Using virtual and pure virtual functions implement hierarchy of computer printers.
Assignment – Lab:
• Find the number of students who are passes or failed using MAP.
• Find the prime numbers from 2 to n using sieves algorithm, use SET
• Implement the Run time polymorphism using RTTI
PG-DAC, C, C++ & Data Structures Using C++ Page 2 of 5
ACTS, Pune
Teaching Guidelines for C, C++ & Data Structures Using C++ - PG-DAC AUGUST-13
Assignment – Lab:
• Implement circular queue using linked list
• Implement C-Stack, C2-Stack and CN-Stack in same memory block.
Assignment – Read:
º Read consequences of these patterns from book
Assignment – Lab:
º Suppose we are writing a program to assist homeowners in designing additions to their houses.
What objects might a Factory be used to produce?
Session 19:
Lecture
Structural Patterns
º The Adapter pattern
º The Bridge Pattern
º The Composite Pattern
Assignment – Read:
º Read consequences of these patterns from book
Assignment – Lab:
º Write the code to define a Brightness object that represents the brightness function.
Session 20:
Lecture
Behavioral Patterns
º Chain Of Responsibility
º The Command Pattern
º The Interpreter Pattern
Assignment – Read:
º Read consequences of these patterns from book