摘要: #include <stdio.h>int n = 0; //交换两个数void swap(int *a, int *b) { int m; m = *a; *a = *b; *b = m; } void perm(int list[], int k, int m) { int i; if(k > m) { for(i = 0; i <= m; i++) printf("%d ", list[i]);... 阅读全文
posted @ 2013-06-20 23:17 蓬莱仙羽 阅读(795) 评论(0) 推荐(0)
摘要: #include <reg51.h>typedef unsigned char uchar;typedef unsigned int uint;void delay(unsigned int i); //函数声名char DelayCNT;//定义变量sbit P10=P1^0;uint Count=0;uchar n=0;uchar Key_Value;//获取键盘码uint i=0;uint flag=0;//此表为 LED 的字模, 共阴数码管 0-funsigned char code Disp_Tab[] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d, 阅读全文
posted @ 2013-06-20 15:49 蓬莱仙羽 阅读(390) 评论(0) 推荐(0)