会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
myrj
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
129
130
131
132
133
134
135
136
137
···
187
下一页
2021年8月11日
C语言:字符数组和数字的相互转换函数
摘要: 一、c 语言中字符数组和数字的相互转换函数; 相关函数:atof atoi,atol, strtod,strtol,strtoul 在头文件stdlib中 #include<stdlib.h> (1)atof (将字串转换成浮点型数) ascii to floating 的缩写 char *str
阅读全文
posted @ 2021-08-11 06:01 myrj
阅读(1705)
评论(0)
推荐(0)
2021年8月10日
单片机:按秒计时 用16进制表示 15秒1响 1秒LED0 1闪
摘要: #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
阅读(496)
评论(0)
推荐(0)
C语言:数组长度的计算
摘要: #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
阅读(543)
评论(0)
推荐(0)
C语言:数组操作
摘要: 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
阅读(372)
评论(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
阅读(558)
评论(0)
推荐(0)
单片机:按秒计时,10秒响一次 每秒LED0 1亮 10进制
摘要: #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
阅读(417)
评论(0)
推荐(0)
单片机:数码管显示计时,LED0 1 1秒一闪 LED2 3 1分一闪 LED5 LED6 1小时一闪 K1 K2调整时 K3 K4调整分钟 1分钟 一小时BEEP响一次
摘要: #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
阅读(246)
评论(0)
推荐(0)
单片机:数码管显示计时,LED0 1 1秒一闪 LED2 3 1分一闪 LED5 LED6 1小时一闪 K1 K2调整时 K3 K4调整分钟
摘要: #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
阅读(331)
评论(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
阅读(1372)
评论(0)
推荐(0)
2021年8月9日
单片机:USB-232电路图
摘要:
阅读全文
posted @ 2021-08-09 21:47 myrj
阅读(104)
评论(0)
推荐(0)
上一页
1
···
129
130
131
132
133
134
135
136
137
···
187
下一页
公告