输入的问题 ```c cin.ignore() ``` 改成 ```c cin.ignore(1024,'\n') ``` 具体可看[这里](https://blog.csdn.net/weixin_44031022/article/details/105331764) by summ1t @ 2024-10-09 06:38:18