摘要: void sig_handler(int signo) { std::cout << "oops! stop!!!" << std::endl; _exit(0); } int main(int argc, char **argv) { PadSim pad_sim ; pad_sim.init(n 阅读全文
posted @ 2020-07-02 16:46 youlin 阅读(215) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_35212671/article/details/53150417?utm_source=blogxgwz7 阅读全文
posted @ 2020-07-02 16:09 youlin 阅读(239) 评论(0) 推荐(0) 编辑
摘要: error: ISO C++ forbids declaration of ‘init’ with no type [-fpermissive] (1)检查 init函数是否缺乏返回值类型 阅读全文
posted @ 2020-07-02 15:19 youlin 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 在类的头文件中不暴露私有变量,目的一般有两个: 1. 提供给别人的dll对应的头文件中,不希望在头文件中暴露私有变量的名称; 2. 因为私有变量的类型需要包含另一个头文件,所以不希望在头文件中包含其它头文件; 一般可以用下面的方法来隐藏私有变量。 在头文件中封装接口: TWebSocketServe 阅读全文
posted @ 2020-07-02 11:44 youlin 阅读(1215) 评论(0) 推荐(0) 编辑