graduate.c

来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 49 行

C
49
字号
/*
 *  This file was generated by the SOM Compiler and Emitter Framework.
 *  Generated using template emitter:
 *      SOM Emitter emitctm: 2.23.1.9
 */

#ifndef SOM_Module_graduate_Source
#define SOM_Module_graduate_Source
#endif
#define GraduateStudent_Class_Source

#include "graduate.ih"

#include <stdio.h>
#include <string.h>

SOM_Scope void  SOMLINK printStudentInfo(GraduateStudent *somSelf)
{
    GraduateStudentData *somThis = GraduateStudentGetData(somSelf);
    GraduateStudentMethodDebug("GraduateStudent","printStudentInfo");

    GraduateStudent_parent_Student_printStudentInfo(somSelf);

    printf(" Thesis : %s\n", _thesis);
    printf(" Degree : %s\n", _degree);
}

SOM_Scope char*  SOMLINK getStudentType(GraduateStudent *somSelf)
{
    static char *type = "Graduate";

    GraduateStudentMethodDebug("GraduateStudent","getStudentType");

    return type;
}

SOM_Scope void  SOMLINK setUpGraduateStudent(GraduateStudent *somSelf,
                                             char *id, char *name,
                                             char *thesis, char *degree)
{
    GraduateStudentData *somThis = GraduateStudentGetData(somSelf);
    GraduateStudentMethodDebug("GraduateStudent","setUpGraduateStudent");

    _setUpStudent(somSelf, id, name);
    strcpy(_thesis, thesis);
    strcpy(_degree, degree);
}

⌨️ 快捷键说明

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