#include<iostream>
using namespace std;
int main()
{
char test[10];
char cont[10];
cin.getline(test,10);
cin.getline(cont,10);
cout<<test<<" is not "<<cont<<endl;
return 0;
}
Run Code Online (Sandbox Code Playgroud)
当我输入:
12345678901234567890
输出是:
123456789
这似乎cont是空的.有人可以解释一下吗?