#include
#include
#include
#include
using namespace std;
int main()
{
ifstream f;
f.open("data.txt");
string str;
vector
while(getline(f, str))
{
istringstream input(str);
vector
int a;
while(input >> a)
tmp.push_back(a);
num.push_back(tmp);
}
for(int i = 0; i < num.size(); ++i)
{
for(int j = 0; j < num[i].size(); ++j)
{
cout << num[i][j] << " ";
}
cout << endl;
}
return 0;
}
望采纳。多谢