随笔分类 -  面试准备

摘要:1 1 #include <iostream> 2 2 #include <stdio.h> 3 3 #include <string> 4 4 #include <string.h> 5 5 #include <algorithm> 6 6 #include <vector> 7 7 #inclu 阅读全文
posted @ 2016-04-22 15:10 Szz 阅读(237) 评论(0) 推荐(0)
摘要:先贴出代码,代码后面是讲解 自己编写的单例模式: 我感觉比较好的写法就是使用静态局部变量,关于单例模式的了解,请往下看,下面是转自别人的博客。 转自:http://blog.csdn.net/hackbuteer1/article/details/7460019 单例模式也称为单件模式、单子模式,可 阅读全文
posted @ 2016-04-19 14:57 Szz 阅读(413) 评论(0) 推荐(0)
摘要:转自:http://blog.jobbole.com/44409/ 线程 类std::thread代表一个可执行线程,使用时必须包含头文件<thread>。std::thread可以和普通函数,匿名函数和仿函数(一个实现了operator()函数的类)一同使用。另外,它允许向线程函数传递任意数量的参 阅读全文
posted @ 2016-04-17 23:10 Szz 阅读(456) 评论(0) 推荐(0)
摘要:参考转自:http://www.niubb.net/a/2015/11-19/992306.html http://www.cnblogs.com/g0feng/archive/2012/05/18/2508293.html 基础知识百度文库:http://wenku.baidu.com/link? 阅读全文
posted @ 2016-04-15 22:38 Szz 阅读(863) 评论(0) 推荐(0)