C/C++
离谱鸽
萨达瓦达瓦大大哇打我
展开
-
ZERO ICE的使用-slice语法-编写-进程间通信-TCP-简单实例
Ice简单例子 slice文件编写 要想使用ice首先要编写slice文件:示例: #ifndef PERSON #define PERSON #include "persondefine.ice" module hello { //structure definition struct Person { string name; long size; }; sequence<IEDFAULTARC>原创 2021-03-05 10:58:51 · 506 阅读 · 1 评论 -
Ice3.4.2 编译过程报错FileUtil.cpp: In function ‘int IceUtilInternal::rmdir(const string&)’:
Ice3.4.2 编译过程报错 FileUtil.cpp: In function ‘int IceUtilInternal::rmdir(const string&)’: FileUtil.cpp:401:14: error: ‘::rmdir’ has not been declared; did you mean ‘IceUtilInternal::rmdir’? 解决办法: 找到该文件,添加include #include <unistd.h> ...原创 2021-01-26 09:40:34 · 336 阅读 · 0 评论 -
C/C++ 构造调用顺序与析构顺序
C++ 构造调用顺序与析构顺序 示例 A a; int main() { B b; static C c; D *d = new D(); delete d; } A是全局定义的,main执行前,a首先被创建然后是 b,c,d; 析构时:d,b,c,a ...原创 2019-10-24 14:03:33 · 225 阅读 · 0 评论