不知道为什么一直说没有声明gets函数
#include <iostream>
#include <string.h>
#include<cctype>
#include<cstring>
using namespace std;
int main() {
char ch[10000];
int cnt = 0;
gets_s(ch);
for (int i = 0; i < strlen(ch); i++) {
if (isalpha(ch[i])) {
cnt++;
}
if (ch[i]>='0'&&ch[i]<='9') {
cnt++;
}
}
cout << cnt << endl;
return 0;
}