上一页 1 ··· 128 129 130 131 132 133 134 135 136 ··· 186 下一页
摘要: #include<reg51.h> #define uchar unsigned char; #define uint unsigned int; uchar position; uchar tt,bz1=0,bz2=0,bz3=0; char buffer [3]; uint second,n; 阅读全文
posted @ 2021-08-10 22:06 myrj 阅读(488) 评论(0) 推荐(0)
摘要: #include <stdio.h> int main() { int arr[] = {1,2,3,4,5}; int length = sizeof(arr)/sizeof(int); printf("%d\n",length); getchar(); } 阅读全文
posted @ 2021-08-10 16:18 myrj 阅读(538) 评论(0) 推荐(0)
摘要: 1.字符数组赋值:char c1[20] = "women"; 2。将数转为字符赋值给数组 #include <stdio.h> #include <cstdlib> #include <stdlib.h> int main() { char c1[20] = "women"; int num=10 阅读全文
posted @ 2021-08-10 15:32 myrj 阅读(371) 评论(0) 推荐(0)
摘要: uchar code table1[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};//0--9uchar code table[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x 阅读全文
posted @ 2021-08-10 13:34 myrj 阅读(552) 评论(0) 推荐(0)
摘要: #include<reg51.h> #define uchar unsigned char; #define uint unsigned int; uchar position; uchar tt,bz1=0,bz2=0,bz3=0; uint second; uchar minute; uchar 阅读全文
posted @ 2021-08-10 13:29 myrj 阅读(411) 评论(0) 推荐(0)
摘要: #include<reg51.h> #define uchar unsigned char; #define uint unsigned int; uchar position; uchar tt,bz1=0,bz2=0,bz3=0; uchar second; uchar minute; ucha 阅读全文
posted @ 2021-08-10 13:06 myrj 阅读(241) 评论(0) 推荐(0)
摘要: #include<reg51.h> #define uchar unsigned char; #define uint unsigned int; uchar position; uchar tt,bz1=0,bz2=0; uchar second; uchar minute; uchar hour 阅读全文
posted @ 2021-08-10 12:12 myrj 阅读(324) 评论(0) 推荐(0)
摘要: uchar flag=0; void key() //按键判断程序 { if(key1==0) //判断是否按下键盘 { delay(10); //延时,软件去干扰 if(key1==0) //确认按键按下 { flag=1 } while(key1==0); } if(key2==0) //判断是 阅读全文
posted @ 2021-08-10 08:30 myrj 阅读(1363) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-09 21:47 myrj 阅读(103) 评论(0) 推荐(0)
摘要: #include<reg51.h> #include <intrins.h> char LED; void delay(unsigned int i) { unsigned char j; for(i; i > 0; i--) for(j = 255; j > 0; j--); } main() { 阅读全文
posted @ 2021-08-08 17:35 myrj 阅读(806) 评论(0) 推荐(0)
上一页 1 ··· 128 129 130 131 132 133 134 135 136 ··· 186 下一页