Answers for "gets in cpp"

C++
0

gets in cpp

#include <iostream>
#include <cstdio>

using namespace std;

int main()
{
    char str[100];
    cout << "Enter a string: ";
    gets(str);
    cout << "You entered: " << str;
    
    return 0;
}
Posted by: Guest on February-02-2021
1

get() header file

stdio
Posted by: Guest on April-27-2020

Browse Popular Code Answers by Language