09Cs203 Programming in C++ Credits: 3:0:0 Course Objective
09Cs203 Programming in C++ Credits: 3:0:0 Course Objective
and techniques using C++. Prerequisite: C programming Knowledge Unit I Objects classes inheritance reusability creating new data types polymorphism and overloading. Basic program construction data types: integer, character, float, double, long, double and Boolean. Input output statements: cin cout comments escape sequence manipulators type conversion arithmetic logical and relational operators and library function. Unit II For loop while loop & do loop and if- ifelse, switch & other control statements Structures Enumeration Functions: passing arguments to functions returning values from functions reference arguments overloaded functions inline functions default arguments variables and storage class and returning by reference. Unit III A simple class c++ objects as physical objects c++ objects and data types object as function argument constructors as function argument overloaded constructors copy constructors returning objects from functions structures and classes static class data const and classes Arrays and Strings. Unit IV Overloading unary and binary operators data conversion and pitfalls. Inheritance: derived class and base class derived class constructors overloading member functions class hierarchies public and private inheritance level of inheritance multiple inheritance. Pointers: address and pointers pointers and arrays pointer and c-type strings new and delete operator pointers to pointer. Unit V Virtual functions friend functions static functions this pointer. Streams and files: stream classes stream errors disk file I/O with streams file pointers error handling in file I/O. Templates and exception: function templates class templates exceptions. Text Book: Robert Lafore, Object Oriented Programming in C++, Fourth Edition, Tech Media, 2002. ISBN 0-672-32308-7. Reference Book: Herbert Schildt, C++: The Complete Reference, Fourth Edition, Tata McGraw-Hill, 2003. ISBN 0-07-053246-X.