求高手帮忙啊……6、统计成绩信息时一直报错

head.cpptypedef struct grade{ char num[10];//学号 char name[8]; int chinese; int english; int math; int computer; struct grade *next;}GRADE;int count;//全局变量,总学生人数传递char password[10];//全局变量,密码消息传递 GRADE *head,*tail;//头指针,尾指针char first;//为0时,表明不是第一次登陆系统 queue.cpptypedef struc...
求助 | 2011-04-30 23:00 | 阅读 663 次 | 评论 0 条

求错——循环队列

//循环队列#include <stdio.h>#include <stdlib.h>#define MAXSIZE 20typedef struct { int *base; int rear; int front;}SqQueue;void Instructions(void){ printf("Enter your choice:\n" "1、Insert an element to the Queue\n" "2、Delete an element from the Queue\n" "3、End\n");}v...
数据结构 | 2011-04-11 11:22 | 阅读 610 次 | 评论 0 条

稀疏矩阵

//稀疏矩阵 #include <stdio.h>#include <stdlib.h>#include <time.h>#define MAXSIZE 100#define ELEMTYPE inttypedef struct { int i,j; ELEMTYPE elem;}Triple;typedef struct{ Triple data[MAXSIZE+1]; int rcount,ccount,counter;}TSMatrix;void Display(TSMatrix M){ int temp; printf("********...
数据结构 | 2011-04-11 11:19 | 阅读 614 次 | 评论 0 条
文章归档
最新评论