代码搜索:malloc

找到约 10,000 项符合「malloc」的源代码

代码结果 10,000
www.eeworm.com/read/281527/9151387

c dynamic.c

# include # include # define NUM 10 int main() { char *str[NUM]; /* 定义一个字符性的指针数组 */ int t; /* 为数组中的每个指针分配内存 */ for(t=0; t
www.eeworm.com/read/380114/9162329

h graph4.h

//图类结构体定义与相关操作graph4.h typedef struct {char *data; int *visited; float **edge; int max,size; }Graph; //初始化图 void SetGraph(Graph *G,int n) {int i,j; G->data=new char[n]; G->visited=new
www.eeworm.com/read/380114/9162779

h graph4.h

//图类结构体定义与相关操作graph4.h typedef struct {char *data; int *visited; float **edge; int max,size; }Graph; //初始化图 void SetGraph(Graph *G,int n) {int i,j; G->data=new char[n]; G->visited=new
www.eeworm.com/read/380114/9162917

cpp huffman1.cpp

//赫夫曼树与赫夫曼编码 //Huffman1.cpp #include #include const int MaxV=100;//初始设定的最大权值 const int MaxBit=15;//初始设定的最大编码位数 const int MaxN=15;//初始设定的最大结点数 //赫夫曼树的结点结构 typedef struct
www.eeworm.com/read/380114/9162933

txt huffman1.txt

//赫夫曼树与赫夫曼编码 //Huffman1.cpp #include #include const int MaxV=100;//初始设定的最大权值 const int MaxBit=15;//初始设定的最大编码位数 const int MaxN=15;//初始设定的最大结点数 //赫夫曼树的结点结构 typedef struct
www.eeworm.com/read/183298/9171246

h graph4.h

//图类结构体定义与相关操作graph4.h typedef struct {char *data; int *visited; float **edge; int max,size; }Graph; //初始化图 void SetGraph(Graph *G,int n) {int i,j; G->data=new char[n]; G->visited=new
www.eeworm.com/read/181921/9226519

c queen.c

#include #include #include int *site; //每行的棋子所放置的位置,下标从0开始 int queen; //皇后的数目 int count=0; //第几种放置的可能性 //判断第n+1行的放置是否合适 int IsOk(int n) { in
www.eeworm.com/read/181815/9236392

cpp algo6-1.cpp

// algo6-1.cpp 求赫夫曼编码。实现算法6.12的程序 #include"c1.h" #include"c6-7.h" int min(HuffmanTree t,int i) { // 函数void select()调用 int j,flag; unsigned int k=UINT_MAX; // 取k为不小于可能的值 for(j=1;
www.eeworm.com/read/378183/9245223

dat funtc76b.dat

realloc #include #include #include int main(void) { char *str; str= malloc(10); strcpy(str, "Hello"); printf("String is %s Address is %p ",
www.eeworm.com/read/377683/9265419

tcl memleak3.tcl

#/bin/sh # \ exec `which tclsh` $0 "$@" # # The author disclaims copyright to this source code. In place of # a legal notice, here is a blessing: # # May you do good and not evil. # May you fin