搜索结果

找到约 44 项符合 MALLOC 的查询结果

源码 c语言算法排序

1.Describe a Θ(n lg n)-time algorithm that, given a set S of n integers and another integer x, determines whether or not there exist two elements in S whose sum is exactly x. (Implement exercise 2.3-7.) #include<stdio.h> #include<stdlib.h> void merge(int arr[],int low,int mid,int high){   ...
https://www.eeworm.com/dl/514507.html
下载: 1
查看: 15

源码 数据结构实验

#include <stdio.h>   #include <stdlib.h> ///链式栈      typedef struct node   {       int data;       struc ...
https://www.eeworm.com/dl/517413.html
下载: 2
查看: 48

源码 数据结构实验

#include <iostream> #include <stdio.head> #include <stdlib.head> #include <string.head> #define ElemType int #define max 100 using namespace std; typedef struct node1 { ElemType data; struct node1 *next; }Node1,*LinkList;//链栈 typedef struct { ElemType *base; int top; }SqStack;// ...
https://www.eeworm.com/dl/517414.html
下载: 2
查看: 50

源码 数组子系统

#include <stdio.h> #include <stdlib.h> #define SMAX 100 typedef struct SPNode { int i,j,v; }SPNode; struct sparmatrix { int rows,cols,terms; SPNode data [SMAX]; }; sparmatrix CreateSparmatrix() { sparmatrix A; printf("\n\t\t请输入稀疏矩阵的行数,列数和非零元素个数(用逗号隔开):"); scanf("%d, ...
https://www.eeworm.com/dl/522521.html
下载: 1
查看: 81