C and C++ Tutorial: How to input, read, concatenate and format ouput of strings