//12-6.cpp #include #include using namespace std; int main(int argc, char const *argv[]) { fstream ioFile; ioFile.open("./a.dat",ios::out); ioFile<<"张三"<<" "<<76<<" "<<98<<" "<<67<>name; while(!ioFile.eof()) { ioFile>>chinese>>math>>computer; cout<>name; } ioFile.close(); system("pause"); return 0; }