15. Explain how nested class objects can be defined and accessed using file commands. 16. What are the scoping rules for the nested class objects when using a file? 1. Write a program in C++ to read a...




15. Explain how nested class objects can be defined and accessed using file commands.


16. What are the scoping rules for the nested class objects when using a file?


1. Write a program in C++ to read a file and to (i) display the contents of the file on to the screen,


(ii) display the number of characters; and (iii) the number of lines in the file.


2. Write a program in C++ to read a file and to display the contents of the file on the screen with line numbers.


For example,


1 this is a test


2 program


3 -------


4 -------


3. Write a program in C++ to merge two files into a one file heading.








May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here