📄 client.cc
字号:
/* * Client */#include "tricky.h"#include "tricky_impl.h"using namespace std;intmain (int argc, char *argv[]){ CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "mico-local-orb"); CORBA::Object_var obj = orb->bind ("IDL:iface:1.0"); if (CORBA::is_nil (obj)) { cout << "oops: bind to iface failed" << endl; exit (1); } iface_var iface = iface::_narrow (obj); assert (!CORBA::is_nil (iface)); vt_var v = new vt_impl; v->x (1); derived_var d = new derived_impl; d->y (2); d->z (v); node_var n = new node_impl; n->next (n); iface->skipped_value (d, v); iface->shared_parameter (v, v); iface->cyclic (n); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -