02 2025 档案
摘要:1、主线程 1、当一个类在main函数中new出或新建了一个MainWindow对象,那么MainWindow所有函数执行都在main函数这个线程中进行,也就是主线程(UI线程) 2、子线程 1、当在MainWindow类中new一个新对象
阅读全文
摘要:1、log.h中宏定义 #ifndef LOG_H #define LOG_H #include <stdio.h> #include <iostream> #include <chrono> #include <ctime> #include <mutex> #define LOG_PRINTF(
阅读全文
摘要:1、 C++ 命名规则总结 命名风格 适用场景 示例 大驼峰(PascalCase) ✅ 类名 class NetworkManager; ✅ 结构体名 struct SystemPara; ✅ typedef结构体别名 typedef struct Point3D{.....}Point3D_t,
阅读全文