#include<iostream> #include<iomanip> #include<cmath> #include<cstring> using namespace std; int a[105][105]; int b[105][105]; int main() { char str[20]; gets_s(str); int len = strlen(str); for (int i = len-1; i >=0; i--) { cout << str[i]; } } /* Main.cc: In function 'int main()': Main.cc:11:2: error: 'gets_s' was not declared in this scope gets_s(str); ^~~~~~ Main.cc:11:2: note: suggested alternative: 'gets' gets_s(str); ^~~~~~ gets */ |
Double click to view unformatted code.