2025年12月29日
摘要:
是的,Lua的表中可以存储函数,这是Lua实现面向对象编程的核心机制。以下是几种常见的方式: ## 1. 基础:表存储函数 ```lua-- 创建表并存储函数local person = { name = "张三", age = 25, -- 在表中直接定义函数 sayHello = functio
阅读全文
posted @ 2025-12-29 09:48
小沙盒工作室
阅读(6)
推荐(0)
2025年12月28日
摘要:
https://developer.aliyun.com/article/1114882
阅读全文
posted @ 2025-12-28 15:46
小沙盒工作室
阅读(14)
推荐(0)
2025年12月27日
摘要:
三个部分 文件头 索引表 文件数据 索引表的每个offset记录的是每个诗句相对于数据区起始位置的偏移量 // 简化版文件封包解包程序 #include <stdio.h> #include <string.h> #include <stdlib.h> #include <dirent.h> #in
阅读全文
posted @ 2025-12-27 21:24
小沙盒工作室
阅读(12)
推荐(0)
2025年12月26日
摘要:
rule("removeAImportLib") set_extensions(".a") after_build(function(target) local import_libs = os.files(target:targetdir() .. "/*.a") for _, file in i
阅读全文
posted @ 2025-12-26 18:58
小沙盒工作室
阅读(8)
推荐(0)
摘要:
https://wwbme.lanzouu.com/b0koodg1e密码:a6c1 首先运行drmingw并安装,需要管理员权限打开cmd,然后输入drmingw -i 必须在你的项目里include drmingw的头文件 #include "thirdparty/drmingw/exchndl
阅读全文
posted @ 2025-12-26 16:07
小沙盒工作室
阅读(3)
推荐(0)
摘要:
下载https://wwbme.lanzouu.com/i9eKd3ejb1yd 打开zlib1.2.3源码目录 ./configure mingw32-make 编译dll # 链接成DLL gcc -shared -o zlib_mingw64_11.1.0_x64.dll adler32.o
阅读全文
posted @ 2025-12-26 13:05
小沙盒工作室
阅读(12)
推荐(0)
2025年12月25日
摘要:
1. rang - 轻量级头文件库 特点:仅头文件,无依赖,支持C++11及以上 #include <iostream> #include "rang.hpp" int main() { using namespace rang; std::cout << fg::green << "绿色文字" <
阅读全文
posted @ 2025-12-25 13:02
小沙盒工作室
阅读(4)
推荐(0)
2025年12月24日
摘要:
{ // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ {
阅读全文
posted @ 2025-12-24 20:52
小沙盒工作室
阅读(3)
推荐(0)
摘要:
debug编译 xmake f -m debug xmake release编译 xmake f -m release xmake
阅读全文
posted @ 2025-12-24 08:40
小沙盒工作室
阅读(4)
推荐(0)
2025年12月23日
摘要:
去github下载 直接include #include <iostream> #include "string.h" #include "include/CLI11.hpp" const std::string defaultOutputDir = "output"; //char *defaul
阅读全文
posted @ 2025-12-23 18:15
小沙盒工作室
阅读(8)
推荐(0)