哥哥姐姐帮帮忙!学生成绩管理程序!
#ifndef H_STUDENT_HH
#define H_STUDENT_HH
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#define INCR_SIZE 50
#define NUM 1
#define INITIAL_SIZE 100
struct student
{ char num[15];
char name[20];
char gender[4];
float score[NUM];
float average;
float sum;
int index;
};
typedef struct student StuInfo;
extern int numStus;
extern StuInfo *records;
extern char savedTag;
extern int arraySize;
extern char *subject[];
void handle_menu(void);
int menu_select(void);
void addRecord(void);
void modifyRecord(void);
void display(void);
void queryInfo(void);
void removeRecord(void);
void showTable(void);
int findRecord(char *target,int targetType,int from);
void quit(void);
int getIndex(float sum);
void copyRecord(StuInfo *src,StuInfo *dest);
#endif // H_STUDENT_HH
#include "student.h"
int numStus=0;
StuInfo *records=NULL;
char savedTag=0;
int arraySize;
char *subject[]={"score"};
int main()
{
records=(StuInfo*)malloc(sizeof(StuInfo)*INITIAL_SIZE);
if(records==NULL)
{
printf("memory fail!");
exit(-1);
}
arraySize=INITIAL_SIZE;
printf("\n");
printf("\t******************\n");
printf("\t* this is a *\n");
printf("\t* xueshengchengji*\n");
printf("\t* guanlichengxu *\n");
printf("\t******************\n");
printf("\n");
handle_menu();
}
下面还有一些函数
上面的那个头文件调用时出错
说找不到"student.h"
谁知道怎么回事?谢谢了啊!