专业的嵌入式技术研发、推广、培训、认证机构
嵌入式 Linux 就业班内部资料 第 1 页 AKAE 嵌入式研究中心版权所有
目 录
从C到C++................................................................................................................................................2
1.基础部分 ..........................................................................................................................................2
1.1 namespace.................................................................................................................................2
1.2 布尔类型..................................................................................................................................3
1.3 引用类型..................................................................................................................................4
1.4 变量初始化..............................................................................................................................5
1.5 new和delete ..............................................................................................................................5
1.6 函数的缺省参数......................................................................................................................7
1.7 函数overload............................................................................................................................7
1.8 运算符overload........................................................................................................................9
1.9 inline函数 .................................................................................................................................9
1.10 在C++代码中调用C的库函数............................................................................................10
2.类和面向对象 ................................................................................................................................11
2.1 封装 .......................................................................................................................................11
2.2 const成员变量 ........................................................................................................................16
2.3 static成员变量和成员函数 ....................................................................................................17
2.4 运算符重载............................................................................................................................17
2.5 The Big Three .........................................................................................................................19
2.6 继承 .......................................................................................................................................24
2.7 多态 .......................................................................................................................................30
3.模板(TEMPLATE)与泛型(GENERIC) ......................................................................................37
3.1 模板类与容器(container).................................................................................................38
4.WHAT'S MORE .................................................................................................................................41
5.编程实践 ........................................................................................................................................41
6.参考资料 ........................................................................................................................................41
QT ..........................................................................................................................................................42
1. QT基本知识...................................................................................................................................42
2. QT的工程管理工具QMAKE ...........................................................................................................43
3. 一个简单的QT程序分析 ..............................................................................................................43
4. QT DESIGNER .................................................................................................................................45
5. 简单的自定义对话框...................................................................................................................46
6. QT的容器类...................................................................................................................................50
7. QSETTINGS .....................................................................................................................................52
8. MVC ..............................................................................................................................................53
9. QT的I/O类 .....................................................................................................................................58
10. QTCPSOCKET................................................................................................................................59
11. 参考资料.....................................................................................................................................62