会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
itdef
上一页
1
···
104
105
106
107
108
109
110
111
112
···
127
下一页
2017年10月19日
debian9安装mysql mariadb
摘要: debian9下mysql 替换成mariadb-server-10.1 不过两者类似 具体可见 《MySQL和mariadb区别》 http://ask.chinaunix.net/question/556 MySQL之父Widenius先生离开了Sun之后,觉得依靠Sun/Oracle来发展My
阅读全文
posted @ 2017-10-19 12:49 itdef
阅读(815)
评论(0)
推荐(0)
2017年10月10日
How-to Install VMware Tools on Debian Stretch 9 32/64bit Linux+GNU
摘要: 在虚拟机VMWARE上安装debian9 安装vmwaretools时候遇到问题 询问我IFCONFIG安装在哪里? 新版的debian不知道是用户权限问题还是使用了其他网络配置工具 vmwaretools 无法找到ifconfg文件 经过搜索最后搞定 成功安装vmwaretools How-to
阅读全文
posted @ 2017-10-10 14:31 itdef
阅读(262)
评论(0)
推荐(0)
2017年9月25日
PHP网站记录
摘要: 手把手教您搭建Apache下的PHP环境 http://www.makaidong.com/%E5%8D%9A%E5%AE%A2%E5%9B%AD%E6%8E%A8%E8%8D%90/37371.shtml http://httpd.apache.org/docs/2.4/platform/wind
阅读全文
posted @ 2017-09-25 15:45 itdef
阅读(174)
评论(0)
推荐(0)
2017年9月1日
设计模式 单例模式 使用模板及智能指针
摘要: 单例模式 // Singleton.cpp: 定义控制台应用程序的入口点。// #include "stdafx.h"#include <iostream>#include <memory> using namespace std; template< typename T >class Singl
阅读全文
posted @ 2017-09-01 09:32 itdef
阅读(339)
评论(0)
推荐(0)
2017年8月31日
设计模式 策略模式2 c++11
摘要: 根据需求的不同 选择不同的策略算法 之前是保存的各种策略类的指针 这里直接使用 function bind 选择对应的算法 代码 // 005.cpp: 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <functional> #include <ios
阅读全文
posted @ 2017-08-31 10:36 itdef
阅读(246)
评论(0)
推荐(0)
设计模式策略模式
摘要: 参考http://blog.csdn.net/calmreason/article/details/51029285 定义一系列相同的算法 根据不同需求选择不同的算法策略 使用 bind function 见 设计模式 策略模式2 c++11 代码 // 004.cpp: 定义控制台应用程序的入口点
阅读全文
posted @ 2017-08-31 10:16 itdef
阅读(163)
评论(0)
推荐(0)
设计模式之桥接模式 c++11
摘要: 参考http://blog.csdn.net/calmreason/article/details/50909321 桥接模式 实现与抽象之间由指针关联 调用sample类 实际是调用sample类保存的实现类的方法 代码: // 003.cpp: 定义控制台应用程序的入口点。 // #includ
阅读全文
posted @ 2017-08-31 10:10 itdef
阅读(221)
评论(0)
推荐(0)
设计模式 工厂模式 使用shared_ptr
摘要: 参考http://blog.csdn.net/calmreason/article/details/50903729 所有产品继承同一基本类 由工厂保存基类指针 产生各类产品 代码 // 002.cpp: 定义控制台应用程序的入口点。 // #include "stdafx.h" #include
阅读全文
posted @ 2017-08-31 10:04 itdef
阅读(452)
评论(0)
推荐(0)
设计模式发布订阅
摘要: 参考 http://blog.csdn.net/calmreason/article/details/50895191 主要是发布者存储订阅者的指针 发布时依次NOTIFY 发送信息 订阅者在订阅时将自己加入到发布者的容器中 使用C++11 的智能指针 需要注意智能指针的 weak shared的转
阅读全文
posted @ 2017-08-31 09:58 itdef
阅读(305)
评论(0)
推荐(0)
2017年8月26日
查表胡牌判断算法 c++
摘要: 根据 日文胡牌算法资料 JAVA 此篇博文资料 改写的C++ 代码 tbl.h 1 #pragma once 2 #include <map> 3 #include <vector> 4 5 void init1(std::map<int, std::vector<int>>& tbl); 6 vo
阅读全文
posted @ 2017-08-26 14:43 itdef
阅读(1651)
评论(0)
推荐(0)
上一页
1
···
104
105
106
107
108
109
110
111
112
···
127
下一页
导航
博客园
首页
新随笔
联系
订阅
管理
公告