搜索资源列表
布线问题(分支限界算法应用)
- 六 程序实现: #include <stdio.h> typedef struct { int row int col }Position int FindPath (Position start, Position finish, int &PathLen, Position *&path) { //计算从起始位置start到目标位置finish的最短布线路径,找到返回1,否则,返回0 int i if ((start.row =
this-is-a-sound-code-of-image-enhancement-based-on
- 小波变换的C源代码 #define N0 128 #include \"stdio.h\" #include \"stdlib.h\" #include \"math.h\" #include \"string.-wavelet transform C source code # define N0 128 # include "stdio. h "# include" stdlib.h "# include" math.h
魔方阵的问题求解
- #include"stdio.h" #include"stdlib.h" int main() { int i ,j,a[100][100],n,k,flag=1; while(scanf("%d",&n)!=EOF&&(n%2!=0)) { for(i=0;i<n;i++) for(j=0;j<n;j++) a[i][j]=0; j=n/2; a[0][j]=1; i=0
wangluoliuliang
- 获取数据流量 获取网络 流量 获取网络 流量-include <stdlib.h> #include <stdio.h> #include <pcap.h> void usage() void dispatcher_handler(u_char*, const struct pcap_pkthdr*, const u_char*) void main(int argc, char**argv)
1
- 中序遍历递归与非递归,很简单的代码,就是这么简单!-#include "stdio.h" #include"stdlib.h" #define MAXSIZE 20 typedef int datatype typedef struct Node { datatype data struct Node*lchild struct Node*rchild }Btnode,*Btree typedef struct {
zhongxudiguiyufeidigui
- 中序递归与非递归,很简单的代码,请放心下载,无毒。-#include "stdio.h" #include"stdlib.h" #define MAXSIZE 20 typedef int datatype typedef struct Node { datatype data struct Node*lchild struct Node*rchild }Btnode,*Btree typedef struct {
eluosifangkuai
- VC++ 俄罗斯方块 Russia.h文件: #include <stdio.h> #include <stdlib.h> #include <dos.h> #include <graphics.h> #define TIMER 0xlc/*定义时钟中断的中断号*/ #define VK_LEFT 0x4b00/*左移键*/ #define VK_RIGHT 0x4d0
xiangmu1
- 判断三边是否能构成三角形 如果是的话并求周长面积-#include <stdio.h> #include <math.h> void main() { int a,b,c double p,s printf("请输入三角形的三边长:") scanf(" d, d, d",&a,&b,&c) if ((a+b>c&&a-b<c)==1) { p=(a+b+c)/2 s=sqrt(p*(p-
txl
- #include <stdio.h> #include <stdlib.h> #include <string.h> #include <conio.h> /*屏幕操作函数库*/ #define A " ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄\n" #define B "┆ 班级 ┆ 姓名 ┆ 编号 ┆ 电话号码 ┆ 家庭住址 ┆\n" #define FORMAT "┆ -1
shiyan2
- 哲学家进餐问题 #include<stdio.h> #include<semaphore.h> #include<pthread.h> //宏定义信号量个数为5,宏定义0表示思考,宏定义1表示饿,宏定义2表示吃,宏定义(ph_num+4) N表示左,宏定义(ph_num+1) N表示右 #define N 5 #define THINKING 0 #define HUNGRY 1 #define EATING 2 #
about-indias-temple
- 用于计算印度神庙的柱子问题,怎样子才能以最快速的方式算出其最优顺序。-#include stdio.h #include stdlib.h void move(char getone,char putone) { printf( c-> c\n ,getone,putone) } void hanoi(int n,char one,char two,char three) { if(n==1) move(one,thre
RGDBH
- 连接两个链表。 #i nclude stdlib.h #i nclude stdio.h struct list { int data -Connecting the two lists.
RNT
- 时间函数举例4,一个猜数游戏,判断一个人反应快慢。 程序源代码: #i nclude time.h #i nclude stdlib.h #i nclude stdio.h -Function of time, for example 4, a guessing game to determine a person reaction speed.
YUANDAIMA
- 用二维数组实现矩阵转置,希望初学者能学到一些东西-#include <stdio.h> #define ROW 3 #define COL 4 main() { int matrixA[ROW][COL],matrixB[COL][ROW] int i,j clrscr() printf( Enter elements of the matrixA, ) printf( d* d:\n ,ROW,COL) for( i=0 i<