Posted in All Posts, Semester 3

Sem 3 – OOCP Unit 4 Programs

OOCP – Object Oriented Concepts & Programming

Unit 4 – Templates, Files

1. Write a program to create a function template for finding maximum value contained in an array.
Download | View Code

2. Write a program to create a class template for the ‘Array’ class.
Download | View Code

3. Create a template for the bubble sort function.
Download | View Code

4. Write a program to illustrate the use of insertion and extraction operators for Text mode Input/Output.
Download | View Code

5. Write a program to illustrate the use of put(), get() and getline() functions for Text mode Input/Output.
Download | View Code

6. Write a program to illustrate the use of read() and write() functions for Binary mode Input/Output.
Download | View Code

7. Write a program to illustrate the use of manipulators in file handling.
Download | View Code

8. Write a program to illustrate the use of file pointer manipulation functions.
Download | View Code

9. Write down a program to Copy source file ‘source.txt’ to destination file.
Download | View Code

10. A file contains a list of telephone numbers in the following format :

The names contain only one word and the names and telephone numbers are separated by white space. Write a Program to read the tel.dat file and display the content. The names should be left justified and the number right-justified.
[Will be available soon]

Download All

I hope that you found this article to be helpful.
Please share your thoughts in the Comments Section.

If you liked this article, then please like our Facebook page.

Suggested Reading

Comments