?? add.h
字號:
#ifndef ADD_H_
#define ADD_H_
#include <conio.h>
#include "form.h"
#define NULL 0
#define LEN sizeof(struct student)
char key,ent; //接收輸入的按鍵和回車
char no[11]="0123456789"; //生成學號用的字符串數組
char *oo=no,*pp=no,*qq=no+1; //生成學號用的指針
struct student
{
char sno[4]; //學號
char name[21]; //姓名
short age; //年齡
short chinese; //語文成績
short english; //英語成績
short math; //數學成績
short physics; //物理成績
short chemistry; //化學成績
struct student *pre; //指向上一結點的指針
struct student *next; //指向下一結點的指針
};
struct student *temp,*tail=NULL,*head=NULL;
struct student *addstudentinfo(); //1.添加學生信息
void createid(); //自動生成學號
void inputname(); //輸入姓名
//void inputage(); //輸入年齡
void onlyoneinput(int i,int j); //輸入單個選項
int getstring(char str[100],int lenmax);//輸入限定個數字符
void delleftspace(char str[100]); //去左空格
void delrightspace(char str[100]); //去右空格
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -