⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 head.h

📁 操作系统的进程管理、设备管理、文件管理的动态演示(C版)
💻 H
字号:
#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  /* 最大数据个数400,最好设在250以下*/
#define LLEN     78
typedef union scan{
    long la;
    int  ia;
    char ca[50];
}scankind;

typedef struct couse  {
    char     name[18];     /* 课目名称 */
    float    score;        /* 该科成绩 */
    struct   couse   *next;/* 下一科目*/
}COU;/* 课程信息 */

typedef struct student{
    long     num;      /* 学号 */
    char     name[18]; /* 姓名 */
    char     sex[7];   /* 性别 */
    int      age;      /* 年龄 */
    char     add[21];  /* 住址 */
    int      specialty;/* 专业 */
    int      n;        /* 数目 */
    struct   couse     *couse;/* 该生所选课程的链表 */
    struct   student   *next; /* 所有学生信息的链表 */
}STU;/* 学生信息 */

typedef struct bstnode{
    char     name[18]; /* 课程名称 */
    char     level[3]; /* 课程级别 */
    int      period;   /* 课程学时 */
    int      time;     /* 上课时间 */
    char     add[18];  /* 上课地点 */
    char     flag[3];  /* 期考方式 */
    int      stunum;
    struct student  *stu[100]; /* 选该课的学生信息在内存中的存储地址*/
    struct bstnode  *lchild;
    struct bstnode  *rchild;
}BSTNode,*BSTree;/* 科目结点 */

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];/* 所有学生信息在内存中的存储地址*/
BSTNode *Cou[100];/* 所有课程信息在内存中的存储地址*/
int     Now_first=1;
struct  student *Order(struct student STU_head,char tag,int II);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -