1 2 3 4 5 ··· 17 下一页
摘要: ski 和 db 模块的通信 qt 信号槽 创建一个单例类,在 db 模块发送信号,在ski 模块接收 class abSignalEmitter : public QObject { Q_OBJECT public: static abSignalEmitter& instance() { sta 阅读全文
posted @ 2025-10-23 19:28 卑以自牧lq 阅读(1) 评论(0) 推荐(0)
摘要: 叉积 叉积公式: cross product=(P1.x−P0.x)×(P2.y−P0.y)−(P2.x−P0.x)×(P1.y−P0.y) 判断原理: 叉积 大于 0,则 P2 在 P0P1 线段的 左侧。 叉积 小于 0,则 P2 在 P0P1 线段的 右侧。 叉积 等于 0,则 P2 在 P0 阅读全文
posted @ 2025-07-31 13:40 卑以自牧lq 阅读(23) 评论(0) 推荐(0)
摘要: gds 格式介绍 Record Description 流式格式输出文件由可变长度的 record 组成。 record 的最小长度为四个字节。 record 可以是无限长的。 record 的前四个字节是头部。头部的前两个字节包含一个计数(一个字节 8 bit),表示 record 的总长度。该计 阅读全文
posted @ 2025-07-28 16:39 卑以自牧lq 阅读(74) 评论(0) 推荐(0)
摘要: x11 函数介绍 XCreateGC GC XCreateGC(Display *display, Drawable d, unsigned long valuemask, XGCValues *values); 参数说明 display: 目标显示器的 Display 结构体,表示当前连接的 X 阅读全文
posted @ 2025-07-24 15:22 卑以自牧lq 阅读(18) 评论(0) 推荐(0)
摘要: 终端显示进度条 等于号 void printProgress(unsigned current, unsigned total, const string& tip = "Progress") { float percent = total == 0 ? 100.0f : (current * 10 阅读全文
posted @ 2025-07-14 10:25 卑以自牧lq 阅读(12) 评论(0) 推荐(0)
摘要: fopen() ifstream stat 三种获取文件大小的方式对比: 特性/方式 fseek + ftell std::ifstream::seekg + tellg stat / fstat 📦 所属标准 C 标准库 C++ 标准库 POSIX / 系统 API 🖼️ 面向风格 面向过程 阅读全文
posted @ 2025-07-02 11:12 卑以自牧lq 阅读(14) 评论(0) 推荐(0)
摘要: centos 编译安装 make 环境:centos 7.9 下载地址 本人下载的 make-4.4.tar.gz 版本 执行: tar -zxvf make-4.4.tar.gz cd make-4.4 ./configure --prefix=/home/liam/sandbox/soft/ma 阅读全文
posted @ 2025-06-29 14:10 卑以自牧lq 阅读(60) 评论(0) 推荐(0)
摘要: centos 6.10 编译安装 binutils centos 6.10 安装 qt 5.15 的时候报错, {standard input}:5969: Error: no such instruction: `vpermq $216,%ymm2,%ymm2' {standard input}: 阅读全文
posted @ 2025-06-29 14:09 卑以自牧lq 阅读(14) 评论(0) 推荐(0)
摘要: centos 7.6 编译安装 gperf 下载地址 解压后执行: ./configure --prefix=/home/liam/sandbox/soft/gperf3.3 make;make install 阅读全文
posted @ 2025-06-28 17:50 卑以自牧lq 阅读(19) 评论(0) 推荐(0)
摘要: centos 7.6 编译安装 gcc10.3 下载地址 执行: tar -zxvf gcc-10.3.0.tar.gz # 解压 cd gc-10.3.0 ./contrib/download_prerequisites # 安装需要的依赖 mkdir build && cd build #指定安 阅读全文
posted @ 2025-06-28 11:10 卑以自牧lq 阅读(100) 评论(0) 推荐(0)
1 2 3 4 5 ··· 17 下一页