?? head.h
字號(hào):
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <dos.h>
#include <time.h>
#include <bios.h>
#define edge1 177
#define edge2 186
#define edge3 179
#define edge4 179
#define edge5 179
#define edge6 179
#define edge7 177
#define F1 15104
#define OK 1
#define ERROR 0
#define YES 5497
#define NO 12654
#define DOWN 20480
#define UP 18432
#define LEFT 19200
#define RIGHT 19712
#define DEL 21248
#define INSERT 20992
#define TAB 3849
#define ENTER 7181
#define ESC 283
#define Alt_X 11520
#define File 8448
#define Edit 4608
#define Lookup 9728
#define About 7680
#define MAX_NUM 300 /* 最大數(shù)據(jù)個(gè)數(shù)400,最好設(shè)在250以下*/
#define LLEN 78
typedef union scan{
long la;
int ia;
char ca[50];
}scankind;
typedef struct couse {
char name[18]; /* 課目名稱(chēng) */
float score; /* 該科成績(jī) */
struct couse *next;/* 下一科目*/
}COU;/* 課程信息 */
typedef struct student{
long num; /* 學(xué)號(hào) */
char name[18]; /* 姓名 */
char sex[7]; /* 性別 */
int age; /* 年齡 */
char add[21]; /* 住址 */
int specialty;/* 專(zhuān)業(yè) */
int n; /* 數(shù)目 */
struct couse *couse;/* 該生所選課程的鏈表 */
struct student *next; /* 所有學(xué)生信息的鏈表 */
}STU;/* 學(xué)生信息 */
typedef struct bstnode{
char name[18]; /* 課程名稱(chēng) */
char level[3]; /* 課程級(jí)別 */
int period; /* 課程學(xué)時(shí) */
int time; /* 上課時(shí)間 */
char add[18]; /* 上課地點(diǎn) */
char flag[3]; /* 期考方式 */
int stunum;
struct student *stu[100]; /* 選該課的學(xué)生信息在內(nèi)存中的存儲(chǔ)地址*/
struct bstnode *lchild;
struct bstnode *rchild;
}BSTNode,*BSTree;/* 科目結(jié)點(diǎn) */
struct Parten
{
int MAIN_BK_COLOR; /* 主界面背景色*/
int NOTICE_BK_COLOR;/* 提示框背景色*/
int LINE_COLOR;
int RANGE_COLOR;
int FIRST_WORD_COLOR;
int HIGH_LIGHT_COLOR;
};
struct Parten P[7]={9,0,15,7,4,2, 0,9,11,4,10,1, 7,4,1,6,9,1, 6,8,15,1,14,2, 12,7,2,14,1,1, 13,0,7,2,7,9, 5,9,6,6,7,2},parten; /* 皮膚樣式*/
char *Notice[]={
"Add new couse's information,\r\n and the old data won't lost ...\r\n\n Shortcut Key: 1",
"Add new student's information\r\n\n\n Shortcut Key: 2",
"Load the data that you have \r\n saved,and you can edit it.\r\n\n Shortcut Key: Alt+X Ctrl+L 3",
"Stary to save the student's\r\n information in the file. so\r\n that you can load it next time.\r\n\n Shortcut Key: Ctrl+S 4",
"To Search someone's\r\n information.By name or By number.\r\n\n Shortcut Key: Alt+S 5",
"To show all the couses' \r\n information,so you can which\r\n one should you chose..\r\n\n Shortcut Key: Alt+S 6",
"Renew the information.\r\n Here you can use keybord or \r\n mouse to operate.\r\n\n Shortcut Key: Ctrl+C 7",
"Change the couse's information\r\n you can add it,you can delete it\r\n \r\n\n Shortcut Key: 8",
"Do you make sure to quit?\r\n Have you saved the data?\r\n\n Shortcut Key: Alt+X Esc 9",
};
int NO_SOUND=1,step=0;
union REGS regs;
STU *Stu[300];/* 所有學(xué)生信息在內(nèi)存中的存儲(chǔ)地址*/
BSTNode *Cou[100];/* 所有課程信息在內(nèi)存中的存儲(chǔ)地址*/
int Now_first=1;
struct student *Order(struct student STU_head,char tag,int II);
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -