[软件问题] 怎么在win tc所编译的.exe里输入汉字内容?

7392 4
战神 2010-8-22 21:26:25 | 显示全部楼层 |阅读模式
程序是这样的:#include "stdio.h"
#include "conio.h"
main()
{
    printf("Hello, world\n");
    getch();
}
编译运行后的应用程序是这样的:(如图一)
我把printf("Hello, world\n");这段改成  printf("一二三\n");   运行就出现乱码,应该怎么做呢?
战神 2010-8-22 21:29:03 | 显示全部楼层
图一:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
goldfish 2010-8-23 18:37:56 | 显示全部楼层
不知道。我还是编程的新手。我学的是c:
#include <stdio.h>

int main(void)
{
  printf("一二三\\n");
  return 0;
}
momin606 2010-8-23 19:49:10 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
HUC-chillym 2010-8-24 16:50:29 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

中国红客联盟公众号

联系站长QQ:5520533

admin@chnhonker.com
Copyright © 2001-2025 Discuz Team. Powered by Discuz! X3.5 ( 粤ICP备13060014号 )|天天打卡 本站已运行