student.h

来自「做为SD0609的一员,我扎实的基础是如何打出来的,来看看我那时连猴子选大王都不」· C头文件 代码 · 共 48 行

H
48
字号
#ifndef student_h#define student_hstruct Date{    int year;    int month;    int day;};struct Student{    int id;    char name[20];    Date birthday;    float score;};int showMenu();//show menu and get choicebool append( Student*&, int& );//add a new studentbool remove( Student*&, int& );//remove a studentbool update( Student*&, int& );//update student infobool search( Student*&, int& );//search studentbool list( Student*&, int& );//list all studentsbool showFall( Student*&, int& );//show fall student/*bool input( Student& );//input a student infomationbool input( Date& );//input a datebool isValid( const Date& );//check a datebool isLeap( int );//check if a year is leap or notint findID( Student*, int, int );//find id's indexvoid copyArray( Student*, Student*, int num );void display( const Student& );//show student infovoid display( const Date& );//show dateint showSortMenu();//show menu for sortint showSearchMenu();//show menu for searchint getIDIndex( Student*, int );//input new idvoid sort( Student*, int, int(*comp)(Student&,Student&) );void swap( Student&, Student& );int compID( Student&, Student& );int compName( Student&, Student& );int compDate( Date&, Date& );int compDate( Student&, Student& );int compScore( Student&, Student& );*/#endif

⌨️ 快捷键说明

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