person.h

来自「c语言是面向过程的程序语言」· C头文件 代码 · 共 47 行

H
47
字号
#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 + =
减小字号Ctrl + -
显示快捷键?