string line; cin.getline(cin, line); stringstream ss(line); int tmp = 0; while (ss >> tmp) { // deal with tmp }
点赞 2

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务