printf(“%c%c*%c%c”,206,196,208,249);输出的是 文*轩 。
以下代码有bug,仅供理解
#include
#include
#include
#include
#include
#include
//头文 void dou(int n) { //n为抖动次数 RECT rect; //RECT是一个矩形结构体,相当于保存了一个矩形的四条边的坐标 HWND hwnd = NULL,oldhwnd = NULL; //两个窗口句柄 int x,y,width,height; //用来保存窗口横纵坐标和宽度、高度的变量 int i; system("title C语言研究中心www.dotcpp.com"); for(i=0; i
0) { f=1; SetColor(15,0); for(j=0; f&&j<20000; j++) { if(strncmp(sss[j].str,ch, 2)==0) { // 找到那个字了 printf("%c%c: %d %d ",ch[0], ch[1], sss[j].a,sss[j].b); f=0; } } if(f==1) { // 没找到 SetColor(5,0); printf("不好意思(字典中没有 %2s )由于ASCLL有限,导致ASCLL组成的汉字有限@\n",*ch); } ch+=2; } SetColor(15,0); printf("\n\n\n\n输入:"); } system("cls"); printf("继续使用点击回车? or (这是一个不会结束的字典,请您点击右上方的叉叉退出)\n"); dou(20); } return 0; }
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/198152.html原文链接:https://javaforall.net
