20. Write an object-oriented program with constructor, default constructor, copy constructor and destructor to read a set of lines from stdin and store them in an array A; again read a string S from...




20. Write an object-oriented program with constructor, default constructor, copy constructor and


destructor to read a set of lines from stdin and store them in an array A; again read a string S from the stdin and check whether the given string S is in the array A. If it is, print that line and also how many times it has been repeated in the array A.


21. Write an object-oriented program with constructor, default constructor, copy constructor and


destructor to read a set of lines from stdin and store them in an array A; again read a string S from the stdin and check whether the given string S is in the array A. If it is, remove the string S from the array A and print the updated array on the stdout. For example,


A = concatenate S = cat


The updated a is conenate










May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here