不知道长度,读取数组

#include <sstream>

string input;
getline(cin, input);

stringstream ss(input);

string cur;
while(ss >> cur) {
	process(cur);
}