13b3ebbe14
把川大 wiki「02.Qt方向」课程代码整理为 CMake 管理的可编译运行项目。
Part1 C/C++ 强化 (p01/, 144 目标, host gcc/g++ 构建, 全绿):
- 修复全部编译失败:补 <cstring>/<fstream>/<iomanip>/<vector> 等缺失头
(common_fix + infer_stl_includes 自动检测注入)、修正 pause() 壳注入
(改检测已转换后的 pause 调用)、namespace 提升出函数体、const 成员函数
正确性、dedupe 不再破坏函数重载集、K&R 隐式 int / 动态异常规范等
C++17 移除特性的可编译等价改写。
- 目录采用深缩写 p01/ch04/s03/ (原 part1_cpp/ch04_class_object/03_ctor_dtor)。
Part3 Qt 桌面 (p03/, 29 目标, 隔离 Qt 5.14.2 构建, 全绿):
- gen_part3.py: Qt 外壳模板 (main+QApplication+show, QTimer 自动退出便于
offscreen 验证)、AUTOMOC + .moc include、rewrite_* 处理散文混入/重载/
资源依赖、生成占位 png/gif + .qrc + rundata 样例数据。
- 修正 QLable 笔误、全角分号、.→->、Windows 路径、QApplication 阻塞事件
循环改为 QCoreApplication 等。
任务1 概念/版本验证:
- tools/std_probe.py: 跨 -std= 编译探针 (--pedantic-errors 让已废除特性硬失败)。
- tools/demo_versions/: K&R 隐式 int、三目左值、void* 转换、enum 赋整、
const 经指针、动态异常规范 共 6 个跨版本演示。
- docs/VERSION_NOTES.md: 每条「原文说法→C17/C++17 是否成立→何版本成立→已验证」。
文档: 顶层 README、docs/SOURCE_PAGES.md (页面→目录映射)、
docs/ERRATA.md (Part1 修正)、docs/ERRATA_part3.md (Part3 修正)。
另修复 tools/run.sh / run_qt.sh 的 ${1:?...} 引号语法 bug。
隔离 Qt 验证: ldd 0 系统 Qt 引用; 173/173 目标全绿; p03 offscreen 运行通过。
185 lines
4.2 KiB
JSON
185 lines
4.2 KiB
JSON
{
|
|
"id": "58954499",
|
|
"title": "02.Qt方向",
|
|
"children": [
|
|
{
|
|
"id": "58954436",
|
|
"title": "01.C++技术强化及提升",
|
|
"children": [
|
|
{
|
|
"id": "58954437",
|
|
"title": "01.C++概述",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954438",
|
|
"title": "02.C++初识",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954439",
|
|
"title": "03.C++对C的扩展",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954440",
|
|
"title": "04.类和对象",
|
|
"children": [
|
|
{
|
|
"id": "58954448",
|
|
"title": "01.类和对象的基本概念",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954449",
|
|
"title": "02.面向对象程序设计案例",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954451",
|
|
"title": "03.对象的构造和析构",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954456",
|
|
"title": "04.C++面向对象模型初探",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954457",
|
|
"title": "05.友元",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954458",
|
|
"title": "06.运算符重载",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954461",
|
|
"title": "07.继承和派生",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954469",
|
|
"title": "08.多态",
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "58954472",
|
|
"title": "05.C++模板",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954473",
|
|
"title": "06.C++类型转换",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954474",
|
|
"title": "07.C++异常",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954476",
|
|
"title": "08.C++输入输出流",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954485",
|
|
"title": "09.STL",
|
|
"children": [
|
|
{
|
|
"id": "58954486",
|
|
"title": "01.STL概论",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954487",
|
|
"title": "02.STL三大组件",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954488",
|
|
"title": "03.常用容器",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954498",
|
|
"title": "04.常用算法",
|
|
"children": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "58954500",
|
|
"title": "02.QT安装教程(免注册和登陆)",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954512",
|
|
"title": "03.Qt桌面应用开发",
|
|
"children": [
|
|
{
|
|
"id": "58954513",
|
|
"title": "1 Qt概述",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954515",
|
|
"title": "2 创建Qt项目",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954525",
|
|
"title": "3 第一个Qt小程序",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954527",
|
|
"title": "4 信号和槽机制",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954529",
|
|
"title": "5 QMainWindow",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954535",
|
|
"title": "6 对话框QDialog",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954536",
|
|
"title": "7 布局管理器",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954540",
|
|
"title": "8 常用控件",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954546",
|
|
"title": "9 Qt消息机制和事件",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954548",
|
|
"title": "10 绘图和绘图设备",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "58954552",
|
|
"title": "11 文件系统",
|
|
"children": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |