C

#include<stdio.h>#include<stdlib.h>typedef struct student{ int id;//学号 char name[20]; int score; struct student *next;}stu,*spt;typedef struct{ spt head;//头指针 spt tail;//尾指针 spt current; spt p,q; int tot;}LinkStudent;void CreatLink(LinkStudent &amp;l)//构造空链表{ l.head=l.tail=(stu*)malloc(sizeof(stu...
默认分类 | 2010-05-20 23:53 | 阅读 334 次 | 评论 0 条
文章分类
文章归档
最新评论