| 查看: 253 | 回复: 1 | |||
[求助]
程序编译没有错,一运行出现exe错误,为什么 已有1人参与
|
|
#include <stdio.h> #include <locale.h> #include <string.h> #include <stdlib.h> int main() { const char*p="Welcome to there!"; wchar_t out[16]={0}; setlocale(LC_ALL,"chs" ; mbstowcs(out,p,strlen(p) ); printf("%s", out ); return 0; } 这是我编的,想将ascii码字符串“welcome to there!”转换为unicode码,为什么不能实现 |
» 猜你喜欢
拟解决的关键科学问题还要不要写
已经有7人回复
最失望的一年
已经有3人回复
存款400万可以在学校里躺平吗
已经有20人回复
国自然申请面上模板最新2026版出了吗?
已经有19人回复
请教限项目规定
已经有3人回复
基金委咋了?2026年的指南还没有出来?
已经有10人回复
基金申报
已经有6人回复
推荐一本书
已经有13人回复
疑惑?
已经有5人回复
溴的反应液脱色
已经有7人回复
lvweizhong
铜虫 (著名写手)
- 应助: 57 (初中生)
- 金币: 3181.3
- 红花: 10
- 沙发: 1
- 帖子: 2064
- 在线: 167.6小时
- 虫号: 3683385
- 注册: 2015-02-09
- 专业: 数论
2楼2015-09-19 16:46:55













;
回复此楼