cin save line to variable without extracting

Hello,

I am all new to C++ and have a school assignment where I have characters from cin>> being saved in diverse places. What I need to do is to get the line that is entered by the user in an additional variable. So, I need to save user input without extracting it.

Thanks in advance for your help.

I don't think there is a way,
but really, you don't need that. How about you copy from one variable to another? If you start needing strange stuff like this, there's something wrong with the structure of your code..
Topic archived. No new replies allowed.