View Code of Problem 52

#include<iostream>
#include<cstring>
using namespace std;
int main()
{
	char str[100];
	gets_s(str);
	for (int i = strlen(str) - 1; i >= 0; i--) {
		cout << str[i];
	}
	return 0;
}
/*
Main.cc: In function 'int main()':
Main.cc:7:12: error: 'gets_s' was not declared in this scope
  gets_s(str);
            ^
*/

Double click to view unformatted code.


Back to problem 52