文件问题
#include<iostream>#include<fstream>
using namespace std;
int main()
{
ifstream inFile("D:\\a.txt");//此文件里面内容为AB
char A='o';
inFile>>A;
cout<<A<<endl;
inFile.close();
}
完全编译通过!但什么也没输出!
2007-03-16 17:01
2007-03-16 17:43
2007-03-16 22:57
[此贴子已经被作者于2007-3-17 21:07:17编辑过]

2007-03-17 21:06