C链表的问题,大侠看下我这个问题错在哪里,找不出解决错误的方法。

[复制链接]
查看11 | 回复2 | 2011-9-28 16:02:40 | 显示全部楼层 |阅读模式
#include #include #include struct student{long num;floatscore;struct student *next;};#define LENsizeof(struct student)int n;struct student* create(){struct student *head;
//表头struct student *p1;
//新建节点struct student *p2;
...
回复

使用道具 举报

千问 | 2011-9-28 16:02:40 | 显示全部楼层
1、#include --------》#include 2、#define LENsizeof(struct student);没有分号的3、你没有定义输出链表这个函数,即print(head),也许你是没有把输出函数加进来。...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行