关于fstream的一个问题
是这样的
我在学习fstream的时候发现了一个问题
我用ofstream想把文件调入到内存中
我先定义了个数组
这是我的码
大家帮我指出错误
#include <iostream>
#include <string>
#include <tchar.h>
#include <fstream>
using namespace std;
int main()
{
TCHAR =L a[10000];
ofstream f("c:\\dos.txt");
f>>a[10000];
system("pause");
return 0;
}