没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
// 123.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "stdio.h"
#include "malloc.h"
typedef struct a{
int size;
int begin;
int flag;
struct a *llink,*rlink;
}node;
node *creat(node *head)
{
int i;
node *p,*q;
printf("输入各个资源的大小和起始地址,以输入-1结束:\n");
scanf("%d",&i);
while(i!=-1)
{
p=(node*)malloc(sizeof(node));
p->size=i;
p->flag=0;
scanf("%d",&p->begin);
if(head==NULL)
{
head=p;
head->llink=NULL;
q=head;
}
//
#include "stdafx.h"
#include "stdio.h"
#include "malloc.h"
typedef struct a{
int size;
int begin;
int flag;
struct a *llink,*rlink;
}node;
node *creat(node *head)
{
int i;
node *p,*q;
printf("输入各个资源的大小和起始地址,以输入-1结束:\n");
scanf("%d",&i);
while(i!=-1)
{
p=(node*)malloc(sizeof(node));
p->size=i;
p->flag=0;
scanf("%d",&p->begin);
if(head==NULL)
{
head=p;
head->llink=NULL;
q=head;
}
资源评论
薛_康
- 粉丝: 5
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功