View Code of Problem 52

#include<stdio.h>
#include<math.h>
#include<ctype.h>
#include<string.h>
#include<iostream>
using namespace std;
#include<algorithm>
int main()
{
	char str[100];
	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:12: error: 'gets_s' was not declared in this scope
  gets_s(str);
            ^
*/

Double click to view unformatted code.


Back to problem 52