The code works just fine except for one small problem. Basically it takes the first letter of every word inputted and creates a new word with those letters.
My problem is this: if the user inputs nothing or just a bunch of spaces
it should display ""
instead my code can only display " ". (I know but the professor has his reasons I guess)
PLEASE ALWAYS USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/ http://www.cplusplus.com/articles/z13hAqkS/
Hint: You can edit your post, highlight your code and press the <> formatting button.
You can use the preview button at the bottom to see how it looks.
Played with your program a bit and came up with this.
In the function "getSecretMessage" I changed to this: