上一页 1 2 3 4 5 6 7 8 9 10 ··· 25 下一页
摘要: 定义了一个类A,里面有个模板函数。因为我习惯每个类的声明和实现分开用*.h,*.cpp写。所以类A的源码如下: A.h #ifndef A_H #define A_H class A { public: A(); template <typename T> void fuck(T a); }; #e 阅读全文
posted @ 2024-06-28 10:55 thammer 阅读(73) 评论(0) 推荐(0)
摘要: 转自 https://blog.csdn.net/boysoft2002/article/details/114263346 阅读全文
posted @ 2024-06-28 09:59 thammer 阅读(14) 评论(0) 推荐(0)
摘要: m4 c-stack.c:55:26: error: missing binary operator before token “(“ 55 | #elif HAVE_LIBSIGSEGV && 解决方法: wget https://raw.githubusercontent.com/keyfour 阅读全文
posted @ 2024-06-13 20:30 thammer 阅读(874) 评论(0) 推荐(0)
摘要: 为什么要初始化成员 对于类成员是基础数据类型,例如int、char这些,构造对象时,成员不会被初始化,值是随机的。下面代码可以验证下: class A { public: A(){} void showMember() const { std::cout << "a:" << a << std::e 阅读全文
posted @ 2024-04-29 12:00 thammer 阅读(153) 评论(0) 推荐(0)
摘要: 初级 1. 内存管理:需要在构造函数中分配内存给 ptr,并在析构函数中释放内存,以避免内存泄漏。 MyClass::MyClass() { ptr = new int; } MyClass::~MyClass() { delete ptr; } new delete, new[] delete[] 阅读全文
posted @ 2024-04-25 19:27 thammer 阅读(166) 评论(0) 推荐(0)
摘要: lua协程的创建通常是通过coroutine.create(f),其中f就是协程的主体程序,它必须是一个函数。coroutine.create返回一个类型为thread(lua的8种内建类型之一)的变量。 Creates a new coroutine, with body `f`. `f` mus 阅读全文
posted @ 2024-04-03 10:07 thammer 阅读(701) 评论(0) 推荐(0)
摘要: 安装好EmmyLua插件后,它会提供两种调试方式:1.使用mobdebug调试 2.使用EmmyDebugger调试。mobdebug是用lua写的一个调试模块,基于网络通信(所以依赖luasocket),以字符形式传递调试命令和返回结果。所以使用mobdebug前先需要安装luasocket模块。 阅读全文
posted @ 2024-04-01 09:57 thammer 阅读(647) 评论(0) 推荐(0)
摘要: lua-emmyluadebugger A OpenWrt package of EmmyLuaDebugger IntelliJ-EmmyLua EmmyLuaDebugger IntelliJ-EmmyLua是一个给JetBrains全家桶用的lua插件,也有VSCode版本VSCode-Emm 阅读全文
posted @ 2024-03-20 19:46 thammer 阅读(420) 评论(0) 推荐(0)
摘要: switch:https://www.h3c.com/cn/d_200911/655251_97665_0.htm vlan:https://info.support.huawei.com/info-finder/encyclopedia/zh/VLAN.html bridge:https://ww 阅读全文
posted @ 2024-03-02 18:04 thammer 阅读(27) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/mq0036/p/14699655.html 阅读全文
posted @ 2024-01-09 18:25 thammer 阅读(17) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 25 下一页