C++ 中的gets函数哪里去了?为何编译报错?根据 https://zh.cppreference.com/w/cpp/io/c/gets , gets函数已经被移除。 可以使用#define gets(S) fgets(S,sizeof(S),stdin) 作为兼容性宏替换。
1000:入门测试题目#include<bits/stdc++.h>using namespace std;int main(){int a,b;cin>>a>>b;int s=a+b;cout<<s<<endl;return 0;}206