#include#include #include #include using namespace std; int main() { double temp1, temp2; string input; ifstream fin; bool error; //打开文件 fin.open("in.txt"); error = false; while (true) { getline(fin, input); if (!fin) break; //check for eof istringstream buffer(input); //按照tab分隔,分别赋值给temp1和temp2 buffer >> temp1 >> temp2; //终端打印出来 cout << temp1 << 't' << temp2 << endl; } return 0; }



