gets in cpp

Solutions on MaxInterview for gets in cpp by the best coders in the world

showing results for - "gets in cpp"
Naim
06 Jan 2017
1#include <iostream>
2#include <cstdio>
3
4using namespace std;
5
6int main()
7{
8    char str[100];
9    cout << "Enter a string: ";
10    gets(str);
11    cout << "You entered: " << str;
12    
13    return 0;
14}
Samuel
16 Oct 2019
1stdio