搜索结果

找到约 122 项符合 struct 的查询结果

数据结构 2.[问题描述] 编写递归算法

2.[问题描述] 编写递归算法,在二叉树中求位于先序序列中第K个位置的结点 [输入] 按照先序序列的顺序输入该结点的内容。其输入abd eh cf i g 。输入要求的位置 [输出] 若二叉树不空,按先序序列输出,求出所求位置的结点 [存储结构] 采用二叉表存储 [算法的基本思想] 采用递归方法建立和遍历二叉树。首先建立二叉树的根结 ...
https://www.eeworm.com/dl/654/222660.html
下载: 200
查看: 1106

软件设计/软件工程 This GUI is an updated and enhanced version of the “StructBrowser” utility submitted to MatLab Centr

This GUI is an updated and enhanced version of the “StructBrowser” utility submitted to MatLab Central in May 2003. It comes with new interface and an enhanced display. It uses Microsoft TreeView control to display and explore any kind of MatLab structures. The CRC ExploreStruct was designed to ex ...
https://www.eeworm.com/dl/684/411665.html
下载: 50
查看: 1078

*行业应用 client socket include <sys/types.h> include <sys/socket.h> include <stdio.h> i

client socket include <sys/types.h> include <sys/socket.h> include <stdio.h> include <netinet/in.h> include <arpa/inet.h> include <unistd.h> int main() { int sockfd int len struct sockaddr_in address int result char ch = A sockfd = socket(AF_INET, SOCK_STREAM, 0) address.sin_fami ...
https://www.eeworm.com/dl/631/471268.html
下载: 76
查看: 1074

数据结构 [问题描述] 在二叉排序树中查找关键字为KEY的记录 [输入] 有序表输入要查找元素的关键字 [输出] 查找成功是即可显示查找成功 #include <stdlib.h> #

[问题描述] 在二叉排序树中查找关键字为KEY的记录 [输入] 有序表输入要查找元素的关键字 [输出] 查找成功是即可显示查找成功 #include <stdlib.h> #include <stdio.h> typedef int KeyType typedef struct{
https://www.eeworm.com/dl/654/222663.html
下载: 42
查看: 1144

数据库系统 综合2叉树及B+树优点的能根据增删改而分裂或合并的完整程序(现在以8bit(BYTE key)为关键字,可扩充到64bit的double为key,用户数据包现在以float ton表示,可扩充到任意结

综合2叉树及B+树优点的能根据增删改而分裂或合并的完整程序(现在以8bit(BYTE key)为关键字,可扩充到64bit的double为key,用户数据包现在以float ton表示,可扩充到任意结构struct)
https://www.eeworm.com/dl/523/406804.html
下载: 144
查看: 1092

数学计算 这是用于线性方程组求解的ILUK预处理算法的实现。在VC++编译通过。矩阵采用压缩稀疏行格式存储(CSR)

这是用于线性方程组求解的ILUK预处理算法的实现。在VC++编译通过。矩阵采用压缩稀疏行格式存储(CSR),采用如下结构存储:struct Distmatrix {double **ma int **ja,dimension,*nnzrow } 很容易移植到自己定义数值计算软件包中。经本人测试计算效率比Fortran写的高很多(比如与Sparskit2比较)。 ...
https://www.eeworm.com/dl/641/379281.html
下载: 45
查看: 1517

游戏 五子棋小游戏#include<stdlib.h> #include<time.h> #include<stdio.h> #include<conio.h

五子棋小游戏#include<stdlib.h> #include<time.h> #include<stdio.h> #include<conio.h> int chess[169]={0} /*棋盘*/ struct chess_t/*作为辅助,即是作为建意*/ { char attack /*攻防用的,0表示守,1表示攻*/ int j /*作为优先级用*/ }chess_a[169] ...
https://www.eeworm.com/dl/625/297545.html
下载: 148
查看: 1235

操作系统开发 我所采用的内存管理思想是链表管理思想

我所采用的内存管理思想是链表管理思想,内存分配方案是最佳适应方案(best fit)。其主要的数据结构为 struct node { char* p int memosize int flag struct node* next } 这是一个链表的结点的数据结构,用它来管理内存的分配与回收。P 表示所指的分配的内存的首地址,memosize 表示分配的内存块的大小,flag 为 ...
https://www.eeworm.com/dl/531/317249.html
下载: 49
查看: 1104

技术资料 温度控制的PID算法的C语言程序.

#nclude<reg51.h>#include<intrins.h>#销nclude<math.h>#include<string.h>struct PID{unsigned int SetPoint;//设定目标 Desired Value unsigned int Proportion;//比例常数Proportional Const unsigned int integral;//积分常数Integral Const unsigned int Derivative://微分常数Derivative Const unsigned int LastE ...
https://www.eeworm.com/dl/837901.html
下载: 1
查看: 3457

其他 //顺序表的建立、查找、插入与删除 #include <stdio.h> #include <malloc.h> #include <stdlib.h> #

//顺序表的建立、查找、插入与删除 #include <stdio.h> #include <malloc.h> #include <stdlib.h> #define ListSize 100 //表最大长度 //结构定义 typedef struct SeqList { int node[ListSize] //存放表结点 int length //当前表长度 } SeqList //插入元素 insertList(SeqList *list, int e) { int i=list->length-1 ...
https://www.eeworm.com/dl/534/390208.html
下载: 140
查看: 1062