搜索结果

找到约 710 项符合 j-blog 的查询结果

其他文档 data structure in C快速排序

设初始序列为a1,a2,……,an,以序列中的某个元素ai为基准(轴),经调整后,使得ai左边的元素均小于ai,右边的均大于等于ai,而后对这两个子区再分别使用快速排序。 [具体要求] (1) 需要用一维数组a来存储等待排序的序列; (2) 设置两个工作指针i和j; (3) 每次快速排序都以排序区域的首元素为基准(轴); (4 ...
https://www.eeworm.com/dl/509053.html
下载: 1
查看: 20

单片机编程 用定时器以间隔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() {  j=0; i=0;     TMOD=0X01; TH0=(65536-50000)/256; TL ...
https://www.eeworm.com/dl/509595.html
下载: 1
查看: 605

iPhone 随便穿一个

3 636j36 j3 j 3 h3 6y34 y
https://www.eeworm.com/dl/509669.html
下载: 1
查看: 29

单片机编程 红外解码程序

/*  * _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

Matlab 遗传算法GA

遗传算法(Genetic Algorithm)是一类借鉴生物界的进化规律(适者生存,优胜劣汰遗传机制)演化而来的随机化搜索方法。它是由美国的J.Holland教授1975年首先提出,其主要特点是直接对结构对象进行操作,不存在求导和函数连续性的限定;具有内在的隐并行性和更好的全局寻优能力;采用概率化的寻优方法,能自动获取和指 ...
https://www.eeworm.com/dl/510914.html
下载: 1
查看: 33

仿真技术 matlab-均值滤波.中值滤波

I=imread('fig1.jpg');%从D盘名为myimages的文件夹中读取。格式为jpg的图像文件chost J=imnoise(I,'salt & pepper',0.02);%给图像加入均值为0,方差为0.02的淑盐噪声 subplot(2,4,1); imshow(I); title('原始图像'); subplot(2,4,2); imshow(J); title('加入椒盐噪声之后的图像'); %h=ones(3,3)/ ...
https://www.eeworm.com/dl/511444.html
查看: 133

仿真技术 j极点配置

一个简单状态方程用MATLAB求极点配置
https://www.eeworm.com/dl/511661.html
下载: 1
查看: 33

教材/考试/认证 离散实验 一个包的传递 用warshall

 实验源代码 //Warshall.cpp #include<stdio.h> void warshall(int k,int n) { int i , j, t; int temp[20][20]; for(int a=0;a<k;a++) { printf("请输入矩阵第%d 行元素:",a); for(int b=0;b<n;b++) {& ...
https://www.eeworm.com/dl/512044.html
下载: 2
查看: 47

嵌入式综合 红外遥控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