C++ using OBJECT ORIENTED PROGRAMMING - Topics
C++ Using OBJECT ORIENTED PROGRAMMING - Practice Problems
C++ Using OBJECT ORIENTED PROGRAMMING - Practice Problems
1. Write a C++ program to create a new text file and write some text into it.
2. Write a C++ program to open an existing text file and display its contents on the console.
3. Write a C++ program to count the number of lines in a text file.
4. Write a C++ program to count the number of words in a text file.
5. Write a C++ program to copy the contents of one text file to another.
6. Write a C++ program to find and replace a specific word in a text file.
7. Write a C++ program to append new data to an existing text file.
8. Write a C++ program to sort the lines of a text file in alphabetical order.
9. Write a C++ program to merge multiple text files into a single file.
10. Write a C++ program to split a large text file into smaller files of equal size.
11. Write a C++ program to search for a specific string in a text file and display its line number(s).
12. Write a C++ program to encrypt the contents of a text file using a simple encryption algorithm.
13. Write a C++ program to decrypt the contents of a text file encrypted using the above algorithm.
14. Write a C++ program to read a CSV file and display its contents in tabular form.
15. Write a C++ program to calculate the average of numbers stored in a file.
16. Write a C++ program to store the information of 10 Students having rollno,name,marks,mobileno properties, get() and set() member functions as binary file with following options 1. Insert Record 2. Delete Record 3. Update Record (based on rollno) 4. Search Record (based on rollno) 5. Clone the file 6. Exit.
Expand Your Horizons with Our Free YouTube Courses
Our comprehensive YouTube courses cover a wide range of computer science and IT subjects. Each course is carefully crafted to provide you with a solid foundation and a deeper understanding of the topic. Explore our playlist of free courses and learn at your own pace. Stay ahead of the curve and boost your knowledge with our engaging video lectures.