编译错误,error: ‘gets’ was not declared in this scope
但在VC2010中可顺利编译。
原因: gets()已经不被PAT中C++编译器支持,但是C语音编译器未受影响,把头文件改成C语言格式,用C语音编译器即可通过。
例题可见【PAT B1009】 说反话
题目链接:https://pintia.cn/problem-sets/994805260223102976/problems/994805314941992960
题目代码:https://blog.csdn.net/m0_46287156/article/details/104217903