动态数码显示技术 c语言程序 单片机c51答:这里写个最简单的:include <reg52.h> sbit k=P1^7;unsigned int i=0 ,j=0;unsigned char code dis12345[]={0x06,0x5b,0x4f,0x66,0x6d}; //段码12345 unsigned char code dishello[]={0x76,0x79,0x38,0x38,0x5c}; //段码hello unsigned char code wei[]={0x1e,0x1d,0x1...
C语言编程问题答:include <stdio.h>int main(){ double sc1,sc2,sc3,sc4; printf("请输入学生的门课程成绩:\n"); scanf("%lf%lf%lf%lf",&sc1,&sc2,&sc3,&sc4); printf("sc1=%f, sc2=%f, sc3=%f, sc4=%f\n",sc1,sc2,sc3,sc4); printf("四门课程的平均成绩大于等于80?%s\n"...
C语言 单片机 数字钟答:include<reg52.h> sbit ksec=P3^0;sbit kmin=P3^1;sbit khour=P3^2;unsigned char secshi=0,secge=0,minshi=0,minge=0,hourshi=0,hourge=0;unsigned int num=0,sec=0,min=0,hour=0;unsigned char code table[10]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};vo...