注册 登录
编程论坛 新人交流区

从文件输入输出的问题,不明白

veraxxrr 发布于 2007-11-17 10:25, 516 次点击

#include <iostream>
#include <fstream>
using namespace std;
void main() //这是两种将对象和特定的文件关联起来的方式
{
ofstream fout;
fout.open("cookies");
fout<<"Dull Data";
ifstream fin;
fin.open("cookies");
char it;
fin.get(it);
cout<<it<<endl; //不明白为什么运行起来屏幕上没有输出呢


}

[此贴子已经被作者于2007-11-17 10:27:09编辑过]

0 回复
1