共2条
1/1 1 跳转至页

问
#include <stdlib.h>
#define LIST_INIT_SIZE 10
#define LISTINCREMENT 2
struct LNode
{
int a;
struct LNode *next;
};
extern void InitList(struct LNode * l);
void InitList(struct LNode *l)
{
//LinkList *p;
l->next=(struct LNode *)malloc(sizeof(struct LNode));
l->a = 30;
}
编译链接不同过,请问这是什么原因???谢谢 答 1: 在3.20A中编译没问题啊! 答 2: 引用:
#define LIST_INIT_SIZE 10
#define LISTINCREMENT 2
struct LNode
{
int a;
struct LNode *next;
};
extern void InitList(struct LNode * l);
void InitList(struct LNode *l)
{
//LinkList *p;
l->next=(struct LNode *)malloc(sizeof(struct LNode));
l->a = 30;
}
编译链接不同过,请问这是什么原因???谢谢 答 1: 在3.20A中编译没问题啊! 答 2: 引用:
共2条
1/1 1 跳转至页