I'm trying to store the input that user enters through console. so I need to include the "enter" and any white space.
But cin
stops giving me input after the first space.
Is there a way to read whole lines until CTRL+Z is pressed, or something?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…