Please remember to put your code between the source code brackets so it can be read easily.
Your code is doing exactly what you wrote it to do: print one letter. A char is a single character. If you want to print out an entire word, you need a char array.
But even then, it will only output the first name (if both first and last names are written) because a space stops the input. If you want both names to be printed, use the getline function.