I have a program that receives an input and goes character through character to avoid white spaces. What I need to do now is get each one of those characters that aren't white spaces and stores them in a string as a word.
Someone told me that getline stores each character, it has memory:
Then create a while loop that has a (!= ' ')condition and then use the string.append('x') function to "add" each character to the string variable you've created until you have a word.
I understand the concept but I don't know how to actually do it.