#include
#include
#include
#include
using namespace std;
int main ()
{
ifstream InFile;
InFile.open ("data.txt");
if (InFile)
{
string line;
int number;
vector> v(3);
for (size_t i = 0; i != 3; ++i)
{
getline (InFile, line);
istringstream iss(line);
while (iss >> number)
v[i].push_back (number);
}
InFile.close ();
InFile.clear ();
}
else
throw runtime_error ("打开文件出错!");
}