Question Ans

2020_04_28

2020_04_28

bingliaolong 4年前 (2020-04-28) 8 0

STL STL容器 顺序容器 string vector list forward_list queue deque stack 关联容器 map set unordered_map unordered_set ST...

2020_11_23

2020_11_23

bingliaolong 4年前 (2021-02-17) 7 0

两个栈实现队列 #include <iostream> #include <stack> using namespace std; template <class T> class...

2025_03_18

2025_03_18

bingliaolong 3周前 (03-18) 5 0

Windows Mutex 创建或打开Mutex HANDLE hMutex = CreateMutex( NULL, // 默认安全属性 FALSE, // 初始所有者:FALSE表示创建时不被任何线程持有 L&q...

2020_04_22

2020_04_22

bingliaolong 4年前 (2020-04-23) 12 0

vector.size() && vector.capacity() 相关介绍 size() 返回容器里面当前存放的元素个数 capacity() 在不重新分配内存的情况下,vector或string...

2020_11_20

2020_11_20

bingliaolong 4年前 (2021-02-17) 5 0

Windebug WinDbg相关 生产者消费者 #include <condition_variable> #include <iostream> #include <mutex>...

2025_03_25

2025_03_25

bingliaolong 2周前 (03-25) 7 0

Windows相关 创建Mutex的有无Global的影响 概述 Windows 内核对象(如 Mutex、Event、Semaphore)的命名规则决定了它们的可见范围: 适用场景:跨会话(如服务进程与用户进程)、...

2019_11_05

2019_11_05

bingliaolong 5年前 (2019-11-07) 4 0

argc && argv argc 表示传入main函数的参数个数 argv 表示传入main函数的参数序列或指针 其中,argv[0]一定是程序的名称,包含路径的名称 而由于argv[0]存放的一定...

2022_03_16

2022_03_16 2

bingliaolong 3年前 (2022-03-17) 11 0

多态 编译时多态 通过函数重载实现 运行时多态 多态性可以概括为“一个接口,多个方法”,程序运行时才决定调用哪个具象化函数。 多态通过虚函数实现,虚函数允许子类重新定义成员函数,而子类重写定义父类函数的做法叫做覆盖,...

扫一扫二维码分享