摘要: // ConsoleApplication6.cpp : 定义控制台应用程序的入口点。 #include "stdafx.h" #include<thread> #include<iostream> #include<list> #include<mutex> using namespace std 阅读全文
posted @ 2020-08-18 01:02 sunshine_gzw 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 首先来看单例模式的实现: 所谓单例,就是对象的创建只能一次,也就是不能通过构造函数直接创建对象,要通过其他手段,下面请看代码: // ConsoleApplication6.cpp : 定义控制台应用程序的入口点。 #include "stdafx.h" #include<thread> #incl 阅读全文
posted @ 2020-08-18 00:01 sunshine_gzw 阅读(258) 评论(0) 推荐(0) 编辑