欢迎访问服务器技术网-www.fuwuqijishu.com

为什么显示

程序设计 fuwuqijishu 2年前 (2022-10-01) 9次浏览 0个评论 扫描二维码

关于为什么显示实验.C(14): error C100: unprintable character 0xA1 skipped
实验.C(14): error C100: unprintable character 0xA1 skipped#include #define uchar unsigned char #define uint unsigned int uchar aa,temp,shi,ge; sbit dula=P2^6; sbit wela=P2^7; uchar code table[]={ 0x3f,0x06,0x5b,0x4f, 0x66,0x6d,0x7d,0x07, 0x7f,0x6f,0x77,0x7c, 0x39,0x5e,0x79,0x71, 0x76,0x79,0x38,0x3f}; void delay(uint z); void display(uchar,uchar);》 void init(); void main() { inin(); while(1) { if(aa==20) aa=0; temp ; if(temp==16) temp==0; shi=temp/10; ge=temp; display(shi,ge);  }   } void init() { wela=0; dula=0; TMOD=0x01; TH0=(65536-50000)/256; TL0=(65536-50000)%6; EA=1; ET0=1; TR0=1; } void timer()interrupt 1 { TH0=(65536-50000)/256; TL0=(65536-50000)%6; aa ;  } void display(uchar shi,uchar ge) { dula=1; P0=table[shi]; dula=0; wela=1; P0=0xfe; wela=0; delay(1);  dula=1; P0=table[ge]; dula=0; wela=1; P0=0xfd; wela=0; delay(1);  } void delay(uint z) { uint x,y; for(x=z;x>0;x–) for(y=110;y>0;y–); }的问题

。 c(14):错误C100:猥亵的字符0 xa1跳过
  实验。
c(14):错误C100:猥亵的字符0 xa1跳过# include #定义无符号字符# uchar定义使用uint unsigned int uchar aa,临时,施正荣,通用电气;sbit dula = P2 ^ 6;sbit wela = P2 ^ 7;uchar代码表[]= { 0 x3f,0 x06 0 x5b 0 x4f,0 x66 0 x6d 0 x7d 0 x07 0 x7f,0 x6f 0 x77 0 x7c 0 x39 0 x5e 0 x79 0 x71 0 x76 0 x79 0 x38 0 x3f };无效的延迟(使用uint z);空白显示(uchar uchar);》无效init();void main(){ inin();而(1){如果(aa = = 20)aa = 0;临时 ;如果(temp = = 16)temp = = 0;施正荣= temp / 10;通用电气= temp % 10;显示(shi,通用电气);} }无效init(){ wela = 0;dula = 0;TMOD = 0 x01;TH0 =(65536 – 50000)/ 65536;TL0 =(65536 – 50000)% 256;EA = 1;ET0 = 1;TR0 = 1;}无效计时器()中断1 { TH0 =(65536 – 50000)/ 65536;TL0 =(65536 – 50000)% 256;aa ;}无效显示器(uchar shi,uchar ge){ dula = 1;P0 =表(shi);dula = 0;wela = 1;以P0 = 0 xfe;wela = 0;延迟(1);dula = 1;P0 =表(通用);dula = 0;wela = 1;P0 = 0 xfd;wela = 0;延迟(1);}无效延迟(使用uint z){使用uint x,y;为(x = z;x > 0;x -)为(y = 110;y > 0;y——);}
这是翻译的结果。

喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

Warning: error_log(/www/wwwroot/fuwiqijishu/wp-content/plugins/spider-analyser/#log/log-2515.txt): failed to open stream: No such file or directory in /www/wwwroot/fuwiqijishu/wp-content/plugins/spider-analyser/spider.class.php on line 2900