student.csc
来自「开放源码的编译器open watcom 1.6.0版的源代码」· CSC 代码 · 共 29 行
CSC
29 行
include <somobj.sc>
class:
Student;
-- "Student" class provides a base class to generate more specialized
-- students like "GraduateStudent" and "UnderGraduateStudent"
parent:
SOMObject;
data:
char id[16]; /* student id */
char name[32]; /* student name */
methods:
void setUpStudent(char *id, char *name);
-- sets up a new student
void printStudentInfo();
-- prints the student information
char *getStudentType();
-- returns the student type
char *getStudentId();
-- returns the student ID
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?