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

📄 usedl5.cpp

📁 This package consists of the executable (UCW), a default script file, this file, and the library fi
💻 CPP
字号:
/* This uses the UCRI reflection interface
 * of the UC DLL
 */

#include <iostream.h>  
#include "mstring.h"

ostream& operator << (ostream& out, string s)
{
  out << s.c_str();
  return out;
}

#include "../src/ucri.h"
#include "ucdl.h"

UCDll session;

int main()
{ 
  static string s;

  // all the methods of class std::string
  XClass *ps = uc_std()->lookup_class("string");
  XFunctions& fl = ps->functions();
  for(XFunctions::iterator fli = fl.begin(); fli != fl.end(); ++fli) {
    (*fli)->as_str(s);
    cout << s << endl;
  }
  
 }

⌨️ 快捷键说明

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