Question

Write a program for concatenating a specified number of strings. The user is firstly prompted to enter the number of strings to be concatenated, and then for that number of strings. The program finally outputs the concatenated string.

Use the mystrclass class in mystrclass.h and mystrclass.cpp for all the string manipulation. The reading of the integer number of strings to concatenate must be idiot proof, by reading the integer as a string and converting to integer only if possible (otherwise an error message is output and the program terminates).

Answer