I'm just wondering if it's possible to use getline(cin, string) in some way so if the user were to input "Apple1 Apple2 Apple3", or "John D Doe", it would swap them around so the output would be "Apple3 Apple1 Apple2" or" Doe John D". I've been trying to find the simplest method but I can't seem to do it without individual cin inputs for the 3 apple names.