C++ Practical 2nd Sem BCA Assignments
C++ Practical 2nd Sem BCA Assignments
Assignment
2. Write a C++ program to illustrate try-catch with the division by zero exception.
5. Write a C++ program to compare strings (length wise) using ‘>’, ‘<’, ‘==” operator.
7. Write a C++ program to show a main function can be friend function of a class.
8.write a program to inherits class ‘ Circle’ ,’Square’ ,’Triangle’, from base class ‘Shape’.
Calculate area in each class.
10.WAP that reads a textfile and copy contents of that file to new file .
11.Write a C++ program to perform operation on file data. counts lines ,count words, and no. of
character in a file