代码搜索:malloc
找到约 10,000 项符合「malloc」的源代码
代码结果 10,000
www.eeworm.com/read/198320/7940316
c 习题3-链队列管理.c
#include "datastru.h"
#include
#include
DATATYPE1 dellinkqueue(LINKQUEUE *q)
{/*删除队头元素并返回*/
LINKQLIST *p;
DATATYPE1 v;
if(q->front == q->rear)
{ printf("队列空\
www.eeworm.com/read/198320/7940343
c 习题11-单链表(综合练习).c
#include "datastru.h"
#include
#include
int locate(LINKLIST *a,char x)
/*检查元素x是否在a表中*/
{LINKLIST *la;
la = a->next;
while(la !=NULL)
if(la->data == x) return 1;
www.eeworm.com/read/398515/7941739
cpp 线性.cpp
#include
#include
#include //包含malloc,realloc,sizeof函数的头文件
typedef int ElemType;
typedef struct LinkList//定义
{
ElemType data;
struct LinkList *next;
www.eeworm.com/read/298428/7961227
c chk_disk.c
#include
#include
#include
void main(void)
{
struct fatinfo fat;
long sector, total_sectors;
void *buffer;
getfat(3, &fat);
total_sectors = fa
www.eeworm.com/read/398319/7994774
c test11.c
#include "stdio.h"
#include "stdlib.h"
void fun(char *str);
void main()
{
char *str;
printf("请输入一个字符串:\n");
str=(char *)malloc(100);
gets(str);
fun(str);
puts(str);
return ;
}
vo
www.eeworm.com/read/397637/8031578
h stdafx.h
// stdafx.h : 标准系统包含文件的包含文件,
// 或是经常使用但不常更改的
// 特定于项目的包含文件
//
#pragma once
#define WIN32_LEAN_AND_MEAN // 从 Windows 头中排除极少使用的资料
#include
#include
#include "malloc.h"
www.eeworm.com/read/397413/8051930
cpp 购书清单.cpp
#include "1.h"
void stu_buy()
{FILE *form;
FILE *fg;
buy_list1 *a,*c,*heada;
buy_list1 *b,*d,*headb;
int i,m,zero=0;
int count1;
int count2;
a=NULL;
if((fg=fopen("pass1.txt","r+"
www.eeworm.com/read/397413/8051935
cpp 审核.cpp
#include "1.h"
void check(){
buy_list1 *check,*q,*sto,*p,*pass1,*r,*unpass,*s;
FILE *fp,*fp1,*fp2,*fp3,*fp4;//fp指向学生教师购书单,fp1指向库存,fp2指向pass1,fp3指向unpass,fp4指向pass2
int count=0,i,j,count1,flag
www.eeworm.com/read/397413/8051939
cpp 购书表.cpp
#include
#include
#include
#include
#include
#include
typedef struct buy_list1{ //购书单
char name[20]; //书名
char author[10]; //
www.eeworm.com/read/397413/8051941
cpp 出库表.cpp
#include "1.h"
//显示所有出库的记录
void out()
{FILE *form;
FILE *fg;
buy_list1 *a,*c,*heada;
buy_list1 *b,*d,*headb;
int i,k,zero=0;
int count1;
int count2;
a=NULL;
if((fg=fopen("pass2.