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
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here