首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

fstream中的unicode有关问题

2012-03-04 
fstream中的unicode问题#includefstreamusingnamespacestdvoidmain(){ofstreamoutfile( h:\\测试.dat

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

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

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

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

热点排行