What is going on with 'gets(stdin)' on the site coderbyte?
问题 Coderbyte is an online coding challenge site (I found it just 2 minutes ago). The first C++ challenge you are greeted with has a C++ skeleton you need to modify: #include <iostream> #include <string> using namespace std; int FirstFactorial(int num) { // Code goes here return num; } int main() { // Keep this function call here cout << FirstFactorial(gets(stdin)); return 0; } If you are little familiar with C++ the first thing * that pops in your eyes is: int FirstFactorial(int num); cout <<