btcq.net
当前位置:首页 >> #inCluDE <stDio.h> unsignED ChAr x_tABlE[8]=... >>

#inCluDE <stDio.h> unsignED ChAr x_tABlE[8]=...

#include <stdio.h>unsigned char x_table[8]={00001000,00001100,00000100,00000110,00000010,00000011,00000001,00001001};unsigned char y_table[8]={00001000,00001100,00000100,00000110,00000010,00000011,00000001,00001001}

c=a>>3 //c这个变量没有定义? =00001000>>3 =00000001 =1因此,程序运行结果为:1

你打印的方式错误,改成%ud(对应unsigned int)就对了,usigned int的最大值不是65536,65536是unsigned short int的最大值

#includeint main(){int n,i=1,j=1,sum=0; /*i为循环变量,j为n!, sum为总和 */ printf("请输入n的值:\n"); scanf("%d",&n); while(i 评论0 0 0

#include <stdio.h>main(){ int a=5,b=4,c=3,d=2; if(a>b && b>c) printf("%d\n",d); else if ((c-1>=d)==1) printf("%d\n",d+1); else printf("%d\n",d+2); return 0;}

改成这个看看.scanf("%c",a[i]);

相关文档
网站首页 | 网站地图
All rights reserved Powered by www.btcq.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com