前提:单空格分割 char str[100][20] = { 0 }; int i = 0;int j=0; int count = 0; char c='0'; while (c!='\n') { cin >> str[i]; count = 0; c = getchar(); i++;}