搜索结果

找到约 207 项符合 Long-awaited 的查询结果

matlab例程 蚁群算法程序

Ø 出动m只蚂蚁,每只蚂蚁各随机选择一条路径,记为I=[1 2 3···m],长度记为long(I); Ø 计算出每条路径的信息素浓度,记为P(I)=1/long(I),并进行归一化处理; Ø 重新出动m只蚂蚁,按如下规则选择路径: l 每只蚂蚁都以一个概率p1选择新路径(路径随机); l 未选择新 ...
https://www.eeworm.com/dl/502291.html
下载: 2
查看: 18

C/C++语言编程 toj 4022源代码

#include <iostream> using namespace std; int main(){ int t; cin>>t; while(t--){ long long n; cin>>n; if(n%2==1) cout<<(n*n-1)/4<<endl; else if (n%4==0) cout <<(n*n)/4-1<<endl; else{ if(n==2) cout<<1<<endl; else{ long long k=n/2-1; cout <<k*k+2*k-3<<endl; } ...
https://www.eeworm.com/dl/502385.html
下载: 1
查看: 32

技术书籍 c语言深度剖析

第一章关键字...................................................................................................................................9 1.1,最宽恒大量的关键字----auto..........................................................................................11 1.2,最快的关键字---- register. ...
https://www.eeworm.com/dl/502642.html
下载: 4
查看: 110

其他 一个简单的C程序

求a^b的后四位,a,b可为long long 型整数
https://www.eeworm.com/dl/508801.html
下载: 1
查看: 28

单片机编程 红外解码程序

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

嵌入式综合 红外遥控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#简单计算器

// 学生管理.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "resource.h" #define MAX_LOADSTRING 100 // Global Variables: HINSTANCE hInst; // current instance TCHAR szTitle[MAX_LOADSTRING]; // The title bar text TCHAR szWindowClass[MAX_LOADSTRING]; ...
https://www.eeworm.com/dl/513825.html
查看: 35

软件 简单的计算器

// 学生管理.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "resource.h" #define MAX_LOADSTRING 100 // Global Variables: HINSTANCE hInst; // current instance TCHAR szTitle[MAX_LOADSTRING]; // The title bar text TCHAR szWindowClass[MAX_LOADSTRING]; ...
https://www.eeworm.com/dl/513826.html
查看: 8

源码 12345

/****************temic*********t5557***********************************/    #include   <at892051.h>     #include   <string.h>    #include   <intrins.h>     #include   <stdio.h>     #define    uchar    unsign ...
https://www.eeworm.com/dl/515933.html
下载: 1
查看: 115

笔记 一个按键控制的 10 级变速跑马灯试验

在本课中,我们要用一个按键来实现跑马灯的 10 级调速。这又会涉及到键的去抖的问 题。  本课的试验结果是,每按一次按键,跑马速度就降低一级,共 10 级。  这里我们又增加了一个变量 speedlever,来保存当前的速度档次。  在按键里的处理中,多了当前档次的延时值的设置。  请看程序:  ―― ...
https://www.eeworm.com/dl/516025.html
下载: 1
查看: 60