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

📄 class.cxx

📁 适用于嵌入式系统的XML解析库, 规模比libxml2小得多.
💻 CXX
字号:
class foo_c : public bar_c		// Foo class derived from bar{  float	foo;				/* Real number */  int	bar;				/* Integer */  public:  foo_c(float f, int b);  ~foo_c();  // 'get_bar()' - Get the value of bar.  int // O - Value of bar  get_bar()  {    return (bar);  }  // 'get_foo()' - Get the value of foo.  float // O - Value of foo  get_foo()  {    return (foo);  }  // 'set_bar()' - Set the value of bar.  void  set_bar(int b) // I - Value of bar  {    bar = b;  }  // 'set_foo()' - Set the value of foo.  void  set_foo(float f) // I - Value of foo  {    foo = f;  }  // 'set_foobar()' - Set foo and optionally bar (should show default args).  void  set_foobar(float f, // I - Value of foo             int b = 0) // I - Value of bar  {    foo = f;    bar = b;  }  protected:  static int global;			/* Global integer */  // 'get_global()' - Get the global integer.  int // O - Integer  get_global()  {    return (global);  }  private:  int barfoo; // Another private integer  public:   // 'get_barfoo()' - Get the barfoo value.  int // O - Barfoo value  get_barfoo()  {    return (barfoo);  }}// 'foo_c::foo_c()' - Create a foo_c class.foo_c::foo_c(float f, // I - Value of foo             int b) // I - Value of bar{  foo = f;  bar = b;}// 'foo_c::~foo_c()' - Destroy a foo_c class.foo_c::~foo_c(){}

⌨️ 快捷键说明

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