会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
TheDa
博客园
首页
新随笔
联系
订阅
管理
2021年4月20日
vs使用ifstream从txt文件中读取中文输出乱码的解决方案
摘要: 首先,vs2017的编码格式如下: 代码如下: #include <iostream> #include<string> #include<fstream> using namespace std; int cnt = 0; int main() { string s; ifstream in("i
阅读全文
posted @ 2021-04-20 15:29 TheDa
阅读(1869)
评论(0)
推荐(0)
编辑
公告