int main(int argc, char const *argv[])
{
char str[100][100];
int n, i;
scanf("%d", &n);
for (i = 0; i < n; i++)
gets(str[i]);
for (i = 0; i < n; i++)
printf("%s\n",str[i]);
}
为什么我无法正确读取字符串?
raja@raja-Inspiron-N5110:~/myctry$ ./a.out
2
abc def
abc def