Convert user input to a string variable?

An exercise in my C++ class requires me writing a program that prompts the user to enter 3 strings. I'm then to output the 6 permutations of those strings (i.e. the strings "a" "b" "c" would be acb, bca, bac, cab, cba). This is the code I've come up with:

I'm also asked to rewrite the code so that each string can store a line of text.
Does this mean the user's input becomes a variable of the string data type? I'm unfamiliar with achieving this if so, and I'd appreciate any advice that points me in the right direction. Thanks in advance.

I'm assuming that you mean that you are to create the string that is to be output before you actually output it. If that is not correct then please state the requirement clearly. Please understand my confusion, since "rewrite the code so that each string can store a line of text" doesn't really say much.

Based on my assumption, declare a string to hold the output line. Then concatenate the three strings together and assign that to that output-line string. Then output that output string. If you are supposed to create all the strings before actually outputting any of them, then declare an array of output strings (or a vector of strings).