📅  最后修改于: 2022-03-11 14:44:54.379000             🧑  作者: Mango
#include
#include
#include
#include
int main()
{
std::vector vec;
std::string buffer;
int data;
std::getline(std::cin, buffer);
std::istringstream iss(buffer);
while (iss >> data)
vec.push_back(data);
//foo(vec);
}