https://blog.csdn.net/EXLsunshine/article/details/28440629 举个栗子 当使用cin功能然后键盘输入“aaa bbb ccc”时,cin的那个字符串只会保留“aaa”