• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






zxf

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

12 2017 档案

 
液晶显示zxf
摘要:#include #define uint unsigned int #define uchar unsigned char /* *************************** PIN *************************/ #define LCD1602_DB P0// sbit LCD1602_RS=P2^5; sbit LCD1602_RW=P2^6;... 阅读全文
posted @ 2017-12-13 15:03 邹秀芳 阅读(276) 评论(0) 推荐(0)
杨辉三角
摘要:/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int i,j; int n[10][10]={1}; //初始化数组 //用外循环控制二维数组的行 for(j=0;j<10;j++) { //用内循环控制二维数组的列 阅读全文
posted @ 2017-12-11 16:23 邹秀芳 阅读(185) 评论(0) 推荐(0)
分珠子 1999次后的结果
摘要:/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int box[4]={8,5,3,2}; int max; //最大盒子编号数 int insert;//最多珠子盒子编号 int i,j; //用作循环的变量 //用j变量来确定拿珠子的次数 ... 阅读全文
posted @ 2017-12-11 16:08 邹秀芳 阅读(161) 评论(0) 推荐(0)
数组中插入数 后排序
摘要:不完整 阅读全文
posted @ 2017-12-11 16:07 邹秀芳 阅读(452) 评论(0) 推荐(0)
选择数组排序
摘要:/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int b,c,n,x; int a[100]; int i; printf("你想输入多少个数:"); scanf("%d",&n); for(i=0;ia[c]) { x=a[b]; a[b]=a[c]; a... 阅读全文
posted @ 2017-12-05 16:33 邹秀芳 阅读(158) 评论(0) 推荐(0)
数组排序
摘要:/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int a,b,c,d,sum=0; int n[]={10,20,40,24,45,53,32,54,23,7}; for(a=0;an[d]) { a=n[c]; n[c]=n[d]; ... 阅读全文
posted @ 2017-12-05 16:27 邹秀芳 阅读(154) 评论(0) 推荐(0)
求算个十百输出
摘要:/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int b,s,g; for(b=0;b<10;b++) { for(s=0;s<10;s++) { for(g=0;g<10;g++) { pri... 阅读全文
posted @ 2017-12-04 21:04 邹秀芳 阅读(146) 评论(0) 推荐(0)
求算反弹高度
摘要:/* Note:Your choice is C IDE */ #include "stdio.h" void main() { float sn=100.0,hn=sn/2; int n; n=2; do { sn=sn+2*hn; hn=hn/2; n++; }while(n<=10); printf("第十次落地时,共经过%f米\n\n",sn); printf("... 阅读全文
posted @ 2017-12-04 21:03 邹秀芳 阅读(351) 评论(0) 推荐(0)
九九乘法表
摘要:/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int i,j; for(i=1;i<=9;i++) { for(j=1;j<=i;j++) { printf("%d*%d=%d\t",i,j,i*j); } printf("\n"); } } 阅读全文
posted @ 2017-12-04 21:02 邹秀芳 阅读(134) 评论(0) 推荐(0)
统计从键盘上输入的字符串
摘要: 阅读全文
posted @ 2017-12-04 21:01 邹秀芳 阅读(154) 评论(0) 推荐(0)
等腰三角形字母
摘要:/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int row,col;//行 列 for(row=1;row<7;row++) //定义行 { for(col=1;col<7-row;col++) { printf(" ");... 阅读全文
posted @ 2017-12-04 21:00 邹秀芳 阅读(584) 评论(0) 推荐(0)
小丑
摘要: 阅读全文
posted @ 2017-12-04 20:56 邹秀芳 阅读(199) 评论(0) 推荐(0)
动态数码管
摘要:#include <reg52.h> #define uint unsigned int #define uchar unsigned char uchar duan[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x83,0xc6,0xa 阅读全文
posted @ 2017-12-04 20:52 邹秀芳 阅读(165) 评论(0) 推荐(0)
静态数码管
摘要:/* Main.c file generated by New Project wizard * * Created: 周日 十月 22 2017 * Processor: 80C51 * Compiler: Keil for 8051 */ #include #define uint unsigned int #define uchar unsigned char u... 阅读全文
posted @ 2017-12-04 20:50 邹秀芳 阅读(170) 评论(0) 推荐(0)
晶振复位原理图
摘要: 阅读全文
posted @ 2017-12-04 20:48 邹秀芳 阅读(410) 评论(0) 推荐(0)
流水等上下
摘要:/* #include #define uint unsigned int #define uchar unsigned char void delayn50ms(uint n) { uint i,j; for(i=0;i//头文件 L_M(); //流水灯左移控制程序 R_M(); ... 阅读全文
posted @ 2017-12-04 20:47 邹秀芳 阅读(128) 评论(0) 推荐(0)
求100内数的偶数和
摘要:/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int a=1,sum=0; for(;a<=100;a+=2) { sum+=a; } printf("%d",sum); } 阅读全文
posted @ 2017-12-04 20:43 邹秀芳 阅读(186) 评论(0) 推荐(0)
数的平方和
摘要:/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int a=1,sum=0; for(;a<=100;a+=2) { sum+=a; printf("%d\n",sum); } for(a=1;a<=100;a++) ... 阅读全文
posted @ 2017-12-04 20:41 邹秀芳 阅读(152) 评论(0) 推荐(0)
班长的选举
摘要:/* Note:Your choice is C IDE */ #include "stdio.h" #include "string.h" void main() { int zs,ls,ww,zl;//定义一个给参选人员的票数 int max;// int xuhao;// char name[5];//参选人员的名字 zs=ls=ww=zl=0;//初始票数都为0 pr... 阅读全文
posted @ 2017-12-04 20:40 邹秀芳 阅读(628) 评论(0) 推荐(0)
求算 1到10的阶乘和
摘要:/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int i,j;/* i是1-10之间的任一整数,j是i-1之间的任一整数*/ long int result;//result是1-10之间每个数的阶乘结果result=1; long int sum=0;//sum是每个数的阶乘结果之和 for(i=1;i... 阅读全文
posted @ 2017-12-04 20:01 邹秀芳 阅读(43731) 评论(1) 推荐(0)
计算素数个数 并输出
摘要:/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int m,i,k,h=0,leap; m=101; while(m<=200)//用while确定101-200之间的整数范围 { k=m/2;//求出101-200之间的任一整数的2/1 i=2; ... 阅读全文
posted @ 2017-12-04 20:00 邹秀芳 阅读(985) 评论(0) 推荐(0)
定时/计数器
摘要:#include #define uint unsigned int #define uchar unsigned char sbit lw=P3^1; sbit ld=P3^0; uchar duan[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90}; uchar wei[]={0x01,0x02,0x04,0x08,0... 阅读全文
posted @ 2017-12-04 19:59 邹秀芳 阅读(184) 评论(0) 推荐(0)
计算某年某月是某年的第几天
摘要:/* Note:My name is zxf */ #include "stdio.h" void main() { int year,month,day,sumdays,maxdays,xx,yy,zz,yueshu; int x; printf("请输入一个年份:"); xx: x=scanf("%d",&year); if(x!=1||year9999) {... 阅读全文
posted @ 2017-12-04 19:56 邹秀芳 阅读(319) 评论(0) 推荐(0)
流程图
摘要: 阅读全文
posted @ 2017-12-04 19:54 邹秀芳 阅读(135) 评论(0) 推荐(0)