📄 person.h
字号:
#ifndef PERSON_H#define PERSON_H/* ****************************** * Object Oriented Programming in C * * Author: Laurent Deniau, Laurent.Deniau@cern.ch * * For more information, please see the paper: * http://home.cern.ch/ldeniau/html/oopc/oopc.html * ****************************** */#include <ooc.h>/*----------------------*//* person interface *//* base class */ /*----------------------*/#undef OBJECT#define OBJECT person/* Object interface */BASEOBJECT_INTERFACE char const* private(name);BASEOBJECT_METHODS void constMethod(print);ENDOF_INTERFACE/* Class interface */CLASS_INTERFACE t_person*const classMethod_(new) char const name[] __; void method_(init) char const name[] __; void method_(copy) t_person const*const per __;ENDOF_INTERFACE#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -