读书人

fstream中的unicode有关问题

发布时间: 2012-03-04 11:13:34 作者: rapoo

fstream中的unicode问题
#include <fstream>
using namespace std;

void main()
{
ofstream outfile( "h:\\测试.dat ");
outfile < <1 < <endl;
}

这样出来的文件名是乱码,有没有什么办法可以解决呢?

[解决办法]
什么编译器,我的咋不是乱码呢
[解决办法]
1 =/= '1 ' =/= "1 "
[解决办法]
好象说错了。
[解决办法]
那就帮顶接分!

读书人网 >C++

热点推荐