#include<malloc.h>
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
#define N 3
#define LEN sizeof(struct grade)
struct grade
{
char no[7];
int score;
struct grade * next;
};
//链表中节点的排序
void sort(struct grade* head){
char num[7];
int temp;
struct grade *p1;
struct grade *p2;
struct grade *p;
p1 = head;
while(p1 != NULL){
p2 = p1->next;
p = p1;
while(p2 != NULL){
if(strcmp(p->no,p2->no)>0)
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余4页未读,立即下载