student.h
来自「Data Structures with C++附代码」· C头文件 代码 · 共 18 行
H
18 行
#ifndef STUDENT
#define STUDENT
// student record containing an id and grade point average
struct Student
{
int studID;
float gpa;
};
// overload "==" by comparing student id
int operator== (Student a, Student b)
{
return a.studID == b.studID;
}
#endif // STUDENT
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?