- 博客(2)
- 收藏
- 关注
原创 矩阵键盘线反转法
矩阵键盘线反转法 #include "reg52.h" typedef unsigned int u16; typedef unsigned char u8; #define GPIO_DIG P0 #define GPIO_KEY P1 sbit LA=P2^2; sbit LB=P2^3; sbit LC=P2^4; u8 keyvalue; u8 code smgdu...
2020-02-09 19:33:30
3893
原创 求一维数组中的最大值并输出
求一维数组中的最大值并输出 #include <stdio.h> main() { int i; int a[5]; for (i=0;i<5;i++) scanf("%d",&a); int max=c[0]; //在输入数组a的元素后定义max=c[0],假设max为最大值 for (i=0;i<5;i++) { ...
2020-01-30 13:54:36
12244
4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人