0% found this document useful (0 votes)
1K views

Computer Programming - II

This document outlines a Computer Programming - II course in C++. The course objectives are to introduce object oriented programming concepts like classes, objects, inheritance, and templates using C++. The course is divided into 5 units covering topics like basic C++ syntax, object oriented principles, inheritance, exception handling, files and streams, and templates and the standard template library. The course aims to help students learn programming through real world examples and develop computer-based solutions to problems using object oriented techniques in C++.

Uploaded by

Suresh Ramanujam
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

Computer Programming - II

This document outlines a Computer Programming - II course in C++. The course objectives are to introduce object oriented programming concepts like classes, objects, inheritance, and templates using C++. The course is divided into 5 units covering topics like basic C++ syntax, object oriented principles, inheritance, exception handling, files and streams, and templates and the standard template library. The course aims to help students learn programming through real world examples and develop computer-based solutions to problems using object oriented techniques in C++.

Uploaded by

Suresh Ramanujam
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Computer Programming - II L T P C Hrs

U20
Programming with C++ 3 0 0 4 60

Course Objectives
 To introduce the concepts of Basic Object Oriented concepts and Programming Basics.
 To understand in depth about the Classes and Objects.
 To study the Operator overloading and Inheritance concepts.
 To acquaint the Files and Exception Handling concepts.
 Explain Templates and STL.
Course Outcomes
After completion of the course, the students will be able to
CO1 - To learn programming from real world examples.
CO2 -. To understand Object oriented approach for finding Solutions
CO3 - To create computer based solutions to various real-world problems using C++
CO4- To learn various concepts of object oriented approach towards problem solving
CO5 - Develop the applications using object oriented programming with C ++.

UNIT I INTRODUCTION TO C++ (12 Hrs)


Basic components of a C++ - Program and program structure - Compiling and Executing C++ Program - Data
types - Expression and control statements Iteration statements in C++ - Introduction to Arrays -
Multidimensional Arrays - Strings and String related Library Functions - Functions - Passing Data to Functions
- Scope and Visibility of variables in Functions - Structures in C++.

UNIT II PRINCIPLES OF OBJECT ORIENTED PROGRAMMING AND CONSTRUCTORS (12 Hrs)


Basic Concepts of Object-Oriented Programming: Benefits of OOP – Object Oriented Languages –
Applications of OOP. Classes objects - data members - member functions - this Pointer - Friends - Friend
Functions - Friend Classes - Friend Scope - and Static Functions - Constructors and Destructors - Static
variables and Functions in class - Operator Overloading in C++ - Overloading Unary Operators - Overloading
binary operators.

UNIT III INHERITANCE AND EXCEPTION (12 Hrs)


Inheritance in C++ - Types of Inheritance - Pointers - Objects and Pointers - Multiple Inheritance. Virtual
Functions - Polymorphism - Abstract classes. Exception Handling: Exception – Basics – Exception Handling
Mechanism – Throwing Mechanism – Catching Mechanism – Rethrowing Exception

UNIT IV FILES AND STREAMS (12 Hrs)


Standard input and output operations: C++ iostream hierarchy - Standard Input/output Stream Library -
Organization Elements of the iostream Library - Programming using Streams - Basic Stream Concepts. File
input and output: Reading a File - Managing I/O Streams - Opening a File – Different Methods - Checking for
Failure with File Commands - Checking the I/O Status Flags - Dealing with Binary Files - Useful Functions.

UNIT V TEMPLATES AND STL (12Hrs)


Class templates: Implementing a class template - Implementing class template member functions - Using a
class template - Function templates - Implementing function templates - Using template functions - Template
instantiation - Class template specialization - Template class partial specialization - Template function
specialization - Template parameters - Static members and variables - Templates and friends - Templates and
multiple-file projects. Standard Template library: Containers - iterators and application of container classes.
Text Books
1. E. Balagurusamy, “Object Oriented Programming with C++”, McGraw Hill, 7th Edition, 2018.
2. Herbert Schildt, “C++ - The Complete Reference”, McGraw Hill Education, 4th edition, 2017.

Reference Books
1. Herbert Schildt, “C++ - From the Ground Up”, McGraw Hill Education, 2nd edition, 2010.
2. Stanley B. Lippman, Stanley Lippman, Barbara Moo, “C++ Primer”, Addison-Wesley Professiona, 5th edition 2012.
Web References
1. https://www.tutorialspoint.com/cplusplus/index.htm
2. http://www.cplusplus.com/doc/tutorial/
3. https://www.w3schools.com/cpp/
4. https://www.javatpoint.com/cpp-tutorial
5. https://www.geeksforgeeks.org/cpp-tutorial/

You might also like