c++读取txt文档的问题

Candbasic Candbasic 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
在vb.net中生成student.txt ,
My.Computer.FileSystem.WriteAllText("d:\ss.txt", "20060708", False)

但为什么用C++读出来的是乱码?
string a;
ifstream in;
in.open("d:\\student.key",ios::in);
in>>a;
cout<<a;

...全文

相关推荐

评论 8
收藏 已收藏
分享
返回顶部
Candbasic
VC.NET 7,538 成员 27,670 内容