my teachers feedback:
you were to use string copy and concatenation commands and the name was to be stored in "an array of char data type". You did not use either of these techniques.
Also missing the pre-test while loop that was required.
The user should have had separate prompts for each part of the name
Your program has a decision structure testing for Q, but you have no prompt to tell user when to enter it.
Even if you tell it to quit, you displayed the Q as the full name.
First point I'm not an expert but I think when your teacher said the name was to be stored in "an array of char data type" I think he wanted you to use this:
char finalName[80]; //The 80 is a random number that I putted. You may increase it because some names are bigger than that.
PSS: Please edit your first post and put the code inside code tags. Just select the code and click the <> symbol in the Format box on the left of the post.
I would like to ask you this..If you have a char array of 80 or greater how will the length of it ever be one without using a string of dynamic size( std::string )
Note: If what did here was wrong please tell me what was it explain me how is the right way to do it cause I'm still pretty much a newbie in programming. I use what I know to try to help others