Problem of using cin twice

前端 未结 6 1034
攒了一身酷
攒了一身酷 2020-12-01 13:27

Here is the code:

string str;
cin>>str;
cout<<\"first input:\"<

        
6条回答
  •  一向
    一向 (楼主)
    2020-12-01 14:09

    Good writeup that explains some of the reasons why you are running into this issue, primarily due to the behavior of the input types and that you are mixing them

提交回复
热议问题