哪位帮帮忙,看下哪有错?

#include "stdafx.h"#include"stdio.h"#include"malloc.h"#define NULL0#define LEN sizeof(struct student)struct student{int num;char name[20];char sex;int age;struct student *next;};int n;struct student *creat(void){struct student *head;struct student *p1,*p2;n=0;p1=p2=(struct student*) malloc(LEN)...
默认分类 | 2010-05-20 08:25 | 阅读 908 次 | 评论 0 条

,本人新人,跪求:一链表程序有错,找不出来!谁能帮忙,谢咯!

题目:建立一个链表,每个结点包括:学号,姓名,性别,年龄。输入一个年龄,如果链表中的所包含年龄等于此年龄,则将此结点删除。 #include "stdafx.h"#include"stdio.h"#include"malloc.h"#define NULL0#define LEN sizeof(struct student)struct student{ int num; char name[20]; char sex; int age; struct student *next;};int n;struct student *creat(void){ struct student *...
默认分类 | 2010-05-18 15:55 | 阅读 862 次 | 评论 0 条
浏览4924次
文章分类