| 查看: 262 | 回复: 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码,为什么不能实现 |
» 猜你喜欢
情人节自我反思:在爱情中有过遗憾吗?
已经有8人回复
基金正文30页指的是报告正文还是整个申请书
已经有5人回复
今年春晚有几个节目很不错,点赞!
已经有6人回复
过年走亲戚时感受到了所开私家车的鄙视链
已经有5人回复
lvweizhong
铜虫 (著名写手)
- 应助: 57 (初中生)
- 金币: 3181.3
- 红花: 10
- 沙发: 1
- 帖子: 2064
- 在线: 167.6小时
- 虫号: 3683385
- 注册: 2015-02-09
- 专业: 数论
2楼2015-09-19 16:46:55













;
回复此楼