代码搜索:malloc
找到约 10,000 项符合「malloc」的源代码
代码结果 10,000
www.eeworm.com/read/371950/9529464
cpp main.cpp
/******************************************************************************
14. 有黑白棋子各有N个(分别用*和O代替),按下图方式排列
***...***OOO...OOO
N个黑棋 N个白棋
允许将相邻两个棋子互换位置,最后使
www.eeworm.com/read/371950/9529565
cpp main.cpp
/**************************************************************************************
39. 一个集合满足如下条件:
(1)1是集合的元素;
(2) 若 P 是集合的元素,则 2*P+1,4*P+5 也是集合的元素。
求:此集合中最小的 K 个元素。
③ 对ABC作全排列而
www.eeworm.com/read/371950/9529612
cpp main.cpp
/*****************************************************************************
13. 有N个硬币(N为偶数)正面朝上排成一排,每次将 N-1 个硬币翻过来放在原位
置, 不断地重复上述过程,直到最后全部硬币翻成反面朝上为止。编程让计算机把
翻币的最简过程及翻币次数打印出来(用*代表正面,O 代表反面)。
www.eeworm.com/read/371762/9537182
cpp k均值聚类算法.cpp
//k-均值聚类算法c语言版
#include
#include
#include
#include
#define TRUE 1
#define FALSE 0
int N;//数据个数
int K;//集合个数
int * CenterIndex;//初始化质心数组的索引
do
www.eeworm.com/read/175614/9539898
h matrix_op.h
#include"stdio.h"
#include"time.h"
double Surplus(double A[],int m,int n) /*求矩阵行列式*/
{
int i,j,k,p,r;
double X,temp=1,temp1=1,s=0,s1=0;
if(n==2)
{for(i=0;i
www.eeworm.com/read/174714/9575379
c leo.c
#include
#include
#include
#define A(x) (e^d)&i?e:(e+=i+i/15-d,d
www.eeworm.com/read/174714/9575791
c august.c
#define p struct c
#define q struct b
#define h a->a
#define i a->b
#define e i->c
#define o a=(*b->a)(b->b,b->c)
#define s return a;}q*
#define n (d,b)p*b;{q*a;p*c;
#define z(t)(t*)malloc(sizeof(t))
www.eeworm.com/read/174714/9575938
c dds.c
#define O(b,f,u,s,c,a)b(){int o=f();switch(*p++){X u:_ o s b();X c:_ o a b();default:p--;_ o;}}
#define t(e,d,_,C)X e:f=fopen(B+d,_);C;fclose(f)
#define U(y,z)while(p=Q(s,y))*p++=z,*p=' '
#define N fo
www.eeworm.com/read/370825/9582574
c kernel_cache.c
#include "kernel_cache.h"
#include
/* simple one step history cache
* this optimalisation turns out to accelerate the algoritm
* a 20% (test done for y_dim =1; RBF_kernel)
*/
/* an exten
www.eeworm.com/read/366616/9806397
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