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

📄 import2.h

📁 UC Library Extensions UnderC comes with a pocket implementation of the standard C++ libraries, wh
💻 H
字号:
// import2.h
// testing the import of classes w/ virtual methods

#ifndef __UNDERC__
#define EXPORT __declspec(dllexport)
#else
#define EXPORT
#lib import2.dll
#endif

class EXPORT Base {
protected:
  int a;
public:
  Base(int _a = 0x666);
  ~Base();
  virtual void method1();
  virtual int val();
  virtual void set(int _a);
  virtual int sum(int x);
};

class EXPORT Derived: public Base {
public:
  Derived();
  ~Derived();
  virtual int sum(int);
};

EXPORT Base *return_base();
EXPORT Base *return_derived();

#ifdef __UNDERC__  
#lib 
#endif

⌨️ 快捷键说明

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