scanf("%d", &line);
getchar();//读入第一行最后的换行符
int index = 0;
for (int i = 0; i < line; ++i) {
string s;//从标准输入流当中得到一行字符串
getline(cin, s);
istringstream iss(s);//把字符串封装到iss中
string tmp;
while (getline(iss, tmp, ’ ')) {//根据空格分割iss
s2i(tmp, data[index++]);
}