#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main()
{
char str[30];
gets(str);
}
when i use gets () function compiler gives me the following error
error: 'gets' was not declared in this scope
i was using G++ with geany ide
please make the solution simple cuz iam a beginner.