标签:
#include <iostream>
#include <fstream>
#include <sstream>
using namespace std;
int main()
{
ifstream in("in.txt");
string line;
while (getline(in, line))
{
stringstream ss(line);
string token;
while (ss >> token)
{
// Todo
}
}
in.close();
return 0;
}
标签:
原文地址:http://www.cnblogs.com/chinesedream/p/4592125.html