Reading multiple commands from one line of input in c++
<p>Say input can be 'x','y' and 'z' and for each commandX(),commandY() and commandZ() can be executed, respectively. Instead of having to type then pressing enter each time (ie: x (enter)  commandX() executed then y (enter) commandY() executed ...) how can I let the user input it into just one line (ie: x y z (enter)) and then the commands are made consecutively in the order of their input? ( ie: in x , y , z the order of execution will be commandX() then commandY() then commandZ())</p>
