按分类查找:

  • 多线程游戏

    /**  * 用于在逻辑和界面间传输数据的bean  * @version 1.0  */ public class DataBean {     private int first = -1;     private int second = -1;     public int getFirst() {         return first;     }     public int ...

    /dl/508068.html

    标签: 多线程小游戏 翻牌小游戏

    上传时间: 2015-11-07

    上传用户:dddhhhwww

  • 单片机课程设计

    #include<reg52.h>&nbsp; #include<intrins.h> #define LED P0 sbit KEY0=P2^0; &nbsp;//定义按键输入端口 A &nbsp;&nbsp; sbit KEY1=P2^1; &nbsp;//定义按键输入端口 B &nbsp;&nbsp; sbit KEY2=P2^2; &nbsp;//定义按键输入端口 C unsigned int Led_table[8]={0xfe,0xfc,0xf8,0xf0,0xe0,0xc0,0x80,0x00}; char Led_num=0 ...

    /dl/508925.html

    标签: 单片机

    上传时间: 2015-12-23

    上传用户:kimyu

  • C语言用户注册及登录

    #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<string.h> main(void) { &nbsp; char new_name[4], name[4]; &nbsp; &nbsp; int new_sn ,sn; &nbsp; &nbsp; printf(" &nbsp; &nbsp; &nbsp; &nbsp;【注册】\n\n"); &nbsp; &nbsp; printf("请输入用户名(四位英文字母):"); &nbsp; &nbsp; scanf("%s", ...

    /dl/509083.html

    标签: C语言

    上传时间: 2015-12-30

    上传用户:gjatd1987

  • 用定时器以间隔500MS在6位数码管上依次显示0、1、 2、3….C、D、E、F,重复。

    #include<reg51.h> #define uchar unsigned char #define uint unsigned int uint i,j; sbit dula=P2^6; sbit wela=P2^7; uchar code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d, 0x7d,0x07,0x7f,0x6f,0x77,0x7c, 0x39,0x5e,0x79,0x71}; void main() {&nbsp; j=0; i=0; &nbsp; &nbsp; TMOD=0X01; TH0=(65536-50000)/256; TL ...

    /dl/509595.html

    标签: 用定时器以间隔500MS在6位数码管上依次显示0、1、 2、3….C、D、E、F,重复。

    上传时间: 2016-02-11

    上传用户:娇纵Pamper

  • 红外解码程序

    /* &nbsp;* _168ZHONGDUAN2.c &nbsp;* &nbsp;* Created: 2014/11/2 15:12:45 &nbsp;* &nbsp;Author: lenovo &nbsp;*/&nbsp; #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 ...

    /dl/509771.html

    标签: 程序

    上传时间: 2016-03-03

    上传用户:彦 yan

  • AVR单片机转速表

    /****************************************************************&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 外部晶振8M&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PA0~3:四位数码管的位选&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PB0~7:数码管 ...

    /dl/509864.html

    标签: C语言

    上传时间: 2016-03-09

    上传用户:彦 yan

  • LED电压表源代码

    #include "stm8s103f.h" #include "LEDBL.h" #include "UART1.h" #include "LCD1621.h" //#include "KEY.h" #define uchar unsigned char #define uint unsigned int _Bool KEYC @PB_IDR:4;//COPY _Bool KEYP @PC_IDR:6;//POW uint ShowMode = 1;

    /dl/510053.html

    标签: LED

    上传时间: 2016-03-23

    上传用户:wfbuewsf

  • c语言程序源

    #include <iostream> using namespace std; class Student { public: Student(int, int); int num; int grade; }; Student::Student(int n, int g) { num = n; grade = g; } int maxGradeIndex(Student* s) { int maxGrade, index = 0, i = 0; maxGrade = s[0].grade; for (i = 0; i<5; i++) { if (s[i].grade > maxGrade) ...

    /dl/510573.html

    标签: c语言 程序

    上传时间: 2016-04-23

    上传用户:burt1025

  • 舵机电机PID控制算法

    #include <hidef.h>&nbsp; &nbsp;&nbsp; &nbsp;/* common defines and macros */ #include "derivative.h"&nbsp; &nbsp;&nbsp; &nbsp;/* derivative-specific definitions */ #include <mc9s12xs128.h> //定义PID参数 #define VV_KPVALUE 3&nbsp; &nbsp;&nbsp; &nbsp; //比例 #define VV_KIVALUE 40&nbsp; &nbsp;&nbsp;&nbs ...

    /dl/510659.html

    标签: PID 舵机 电机 控制算法

    上传时间: 2016-04-27

    上传用户:547453159

  • 单片机C语言(for)延时计算

    C程序中可使用不同类型的变量来进行延时设计。经实验测试,使用unsigned char类型具有比unsigned int更优化的代码,在使用时应该使用unsigned char作为延时变量。&nbsp; 以某晶振为12MHz的单片机为例,晶振为12MHz即一个机器周期为1us。&nbsp; ...

    /dl/510684.html

    标签: for 单片机 C语言 延时计算

    上传时间: 2016-04-28

    上传用户:xcx7694