I'm curious if it's possible to put letters out of a getline function into 2 separate string variables, sorry if it's hard to understand but I'll explain this further.
Let's say I have a 'string x;' variable, I use a 'getline(cin, x)' and then I were to run this and type in for example 'hello world'. Would it be possible to put 'hello' and 'world' into 2 separate string variables?
For example: It will store the first letter keep on adding letters to a variable until it hits a whitespace, then keep on adding letters to the next variable until it reaches another whitespace.
I understand I might have explained this poorly, and if it's not understandable let me know and I'll try explain more.