fstream的问题
源码:
#include "stdafx.h"
#include <iostream>
#include <fstream>
int _tmain(int argc, _TCHAR* argv[])
{
ofstream outfile("E:\\test.txt"); //A
return 0;
}
编译出错,说是A行的ofstream没定义,这是怎么回事呢?
源码:
#include "stdafx.h"
#include <iostream>
#include <fstream>
int _tmain(int argc, _TCHAR* argv[])
{
ofstream outfile("E:\\test.txt"); //A
return 0;
}
编译出错,说是A行的ofstream没定义,这是怎么回事呢?