OK, this program first defines a "strings" class which holds a char array of 10 memebers. It's default constructor makes the array an empty c-string, while the constructor from a char*(c-string) copies the content of the string to the internal array. The class also defines a + operator, which concatenates 2 "strings" objects into a single c-string, and returns it. The main() program defines 2 "strings" objects, one with content "test", the other with content "run"(the \0 it not necessary, if not put in there, it would be added automagically), and then concatenates them in the c-string concatstr, which it then prints out.
//A COSTRUCTOR (use is not required in the prescence of the next parameterised one)
1 2 3 4
strings(char *c)
{
strcpy(s,c);
}
//parameterised constuctor (copies the content of the string to the duplicate string as the array variables are taken by the compiler directly without any formal parameters)