搜索结果

找到约 156 项符合 else 的查询结果

单片机编程 红外解码程序

/*  * _168ZHONGDUAN2.c  *  * Created: 2014/11/2 15:12:45  *  Author: lenovo  */  #include <avr/io.h> #include <avr/iom168pa.h> #include <avr/interrupt.h> #include <util/delay.h> #include <avr/eeprom.h> //#include <util/delay_basic.h> //unsigned char const SEGtabl ...
https://www.eeworm.com/dl/509771.html
查看: 52

单片机编程 AVR单片机转速表

/****************************************************************                  外部晶振8M                  PA0~3:四位数码管的位选                  PB0~7:数码管 ...
https://www.eeworm.com/dl/509864.html
下载: 1
查看: 97

单片机编程 读写2102

STB_DRIVE_L;  for(k=0;k<8;k++) { CLK_DRIVE_L; if(a&0x01){DIO_DRIVE_H;} else {DIO_DRIVE_L;} a>>=1; CLK_DRIVE_H; }
https://www.eeworm.com/dl/511703.html
下载: 2
查看: 20

嵌入式综合 红外遥控RGB

#include "STC90.h" #include < intrins.h > #define uchar unsigned char #define uint unsigned int #define led_port P1 sbit IR_RE = P3^2; sbit led_r = P1^3; sbit led_g = P1^4; sbit led_b = P1^5; sbit led_wd = P1^7; sbit K1 =P3^0 ; //增加键 sbit K2 =P3^1 ; ...
https://www.eeworm.com/dl/512141.html
下载: 1
查看: 113

嵌入式综合 调光C程序

/*#include<reg52.h> #define uint unsigned int #define uchar unsigned char #define uchar unsigned char sbit K1=P3^4; sbit K2=P3^5; sbit ledr=P1^0; sbit ledg=P1^1; sbit ledb=P1^2; bit LEDDirection=0;//LED控制方向0:渐亮1:渐灭 char  pwm=0; char  pwmr=0; char  scw=0;//中断记数 char &nbsp ...
https://www.eeworm.com/dl/512142.html
下载: 3
查看: 132

Jsp/Servlet asp实现限制一个ip只能访问一次的方法

asp实现限制一个ip只能访问一次的方法 <%  '/////////////////////////////////////////////////////  '// //  '//作用:一个IP地址只允许访问本页一次 //  '//引用:<!-- #include file="Check_Ip.asp" --> //  '// //  '/////////////////////////////////////////////////////  ...
https://www.eeworm.com/dl/512322.html
查看: 30

源码 批处理感知器算法

批处理感知器算法的代码matlab w1=[1,0.1,1.1;1,6.8,7.1;1,-3.5,-4.1;1,2.0,2.7;1,4.1,2.8;1,3.1,5.0;1,-0.8,-1.3;     1,0.9,1.2;1,5.0,6.4;1,3.9,4.0]; w2=[1,7.1,4.2;1,-1.4,-4.3;1,4.5,0.0;1,6.3,1.6;1,4.2,1.9;1,1.4,-3.2;1,2.4,-4.0;     1,2.5,-6.1;1,8.4,3.7;1,4.1,-2.2]; w3=[1,-3.0,-2. ...
https://www.eeworm.com/dl/513321.html
查看: 37

源码 利用栈的基本操作实现将任意一个十进制整数N转化为R进制整数。

#include <stdlib.h> #include<stdio.h> #include <malloc.h> #define stack_init_size 100 #define stackincrement 10 typedef struct sqstack { int *base; int *top; int stacksize; } sqstack; int StackInit(sqstack *s) { s->base=(int *)malloc(stack_init_size *sizeof(int)); if(!s->base) return 0; s->top=s->ba ...
https://www.eeworm.com/dl/513582.html
查看: 40

源码 运动会源代码

#include <malloc.h>       #include <stdio.h>       #include <stdlib.h>       #include <string.h>       #define NULL 0    &nbsp ...
https://www.eeworm.com/dl/513814.html
下载: 2
查看: 9

软件 学生成绩查询

#include "string.h" #include "ctype.h" #include "stdio.h" search(char pd[]) {FILE *fp; int time=0,i=0,j=0,add[80],k=0,m; char *ch, str[900]; m=strlen(pd); if((fp=fopen("haha.txt","r"))==NULL) { printf("Cannot open this file\n"); exit(0); } for(;!feof(fp);i++) { str[i]=fgetc(fp); if(to ...
https://www.eeworm.com/dl/513823.html
下载: 2
查看: 16