⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 person.h

📁 c语言是面向过程的程序语言
💻 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 + -