上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 23 下一页
摘要: 1.#include <stdio.h>#include <stdlib.h>#include "Hash.h"/* 哈希技术的实现 */struct Student{ char* id; char* name; int age;};int compare_id(HashKey* k1, HashK 阅读全文
posted @ 2016-12-19 13:19 王小波私人定制 阅读(1429) 评论(0) 推荐(0) 编辑
摘要: 1.#include <stdio.h>#include <stdlib.h>#include "BSTree.h"/* 二叉树排序算法 */struct Node{ BSTreeNode header; char v;};void printf_data(BSTreeNode* node){ if 阅读全文
posted @ 2016-12-19 13:00 王小波私人定制 阅读(865) 评论(0) 推荐(0) 编辑
摘要: #include<reg52.h>typedef unsigned int u16;typedef unsigned char u8;sbit key = P3^2;//sbit led = P1^0;////延时函数void delay(u16 num){ u16 x,y; for (x=num; 阅读全文
posted @ 2016-12-18 13:35 王小波私人定制 阅读(242) 评论(0) 推荐(0) 编辑
摘要: #include <reg52.h>typedef unsigned char u8;typedef unsigned int u16;sbit led = P1^0;u8 timer;void main (void){ TMOD = 0x01;//设置TMOD,使得T0工作在16位定时。 TH0 阅读全文
posted @ 2016-12-18 12:59 王小波私人定制 阅读(234) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>#include <time.h>#define SIZE 20//打印数组void println(int array[], int len){ int i = 0; for(i=0; i<len; i++) { print 阅读全文
posted @ 2016-12-15 18:05 王小波私人定制 阅读(759) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>#include <time.h>#include "SeqList.h" //调用库函数#define SIZE 20/* 打印数组 */void print_array(int a[], int len){ int i = 阅读全文
posted @ 2016-12-15 17:37 王小波私人定制 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 1.代码: #include <reg52.h>typedef unsigned char u8;typedef unsigned int u16;sbit seg_sel = P1^4;sbit bit_sel = P1^5;#define DATA P0u8 code seg_tab[]={ 0 阅读全文
posted @ 2016-12-15 14:02 王小波私人定制 阅读(955) 评论(0) 推荐(0) 编辑
摘要: 1.代码: #include <reg52.h>typedef unsigned char u8;typedef unsigned int u16;sbit seg_sel = P1^4;sbit bit_sel = P1^5;#define DATA P0//code 在程序编译的时候 当作代买直 阅读全文
posted @ 2016-12-15 13:59 王小波私人定制 阅读(1224) 评论(0) 推荐(0) 编辑
摘要: 1.代码:#include <reg52.h>typedef unsigned int u16;typedef unsigned char u8;sbit led1 = P1^0;sbit led2 = P1^1;sbit led3 = P1^2;sbit led4 = P1^3;sbit led5 阅读全文
posted @ 2016-12-15 13:57 王小波私人定制 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 1.代码:#include <reg52.h>typedef unsigned int u16;typedef unsigned char u8;sbit led = P1^0;void delay(u16 num){ u16 x,y; for(x=num; x>0; x--) for(y=110; 阅读全文
posted @ 2016-12-15 13:53 王小波私人定制 阅读(174) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 23 下一页
DON'T FORGET TO HAVE FUN