标签:blog io os ar sp 文件 div log as
#include <stdio.h> #include <iostream> #include <fstream> using namespace std; void main() { int a,b; char c; ofstream fout("test.txt"); fout<<" "<<0<<" "<<1<<" "<<4<<endl; fout<<" "<<3<<" "<<4<<" "<<‘d‘<<endl; ifstream fin("test.txt"); while (!fin.eof()) { fin>>a>>b>>c; cout<<a<<" "<<b<<" "<<c<<endl; } cin>>a; }
标签:blog io os ar sp 文件 div log as
原文地址:http://www.cnblogs.com/lwngreat/p/4062918.html