摘要: 博客地址迁移到 http://calabashdad.github.io欢迎诸位光临,指导 阅读全文
posted @ 2014-08-04 16:48 calabashdad 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 中间会用到很多知识,还在整理阶段,等项目基本完工只待修修补补时,再一并整理发布。 阅读全文
posted @ 2014-01-09 00:51 calabashdad 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 请特别注意第2点,我也想不明白为什么这个ios打包的时候要弄一个不兼容的旧版本,然后你还得到官网下载新版wubi,实在是困惑准备工作0. 格出一个硬盘空间,建议10G以上1.下载安装包 ubuntu-12.04.3-desktop-i386.iso2. 注意这个时候不要使用ios文件中到wubi,这个wubi的版本是12.01的,你需要到官网上下载12.02的版本,然后还得命令行中执行一个命令 wubi.exe --32bit ios文件要和wubi放到同一个路径下。3. 然后安装的时候拔掉网线即可剩下的,真的是傻瓜式安装了 阅读全文
posted @ 2013-12-16 23:50 calabashdad 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 模板是c++中灰常好用和强大的方法。传统的方法可以采用的方式来实现,现在尝试下采用模板方法来实现。//采用模板来写工厂方法#include class Product{public: Product() {std::cout class Factory{public: static Product * CreateProduct() { return new T(); }};class ProductA : public Product{public: ProductA() {std::cout ::CreateProduct(); dele... 阅读全文
posted @ 2013-12-14 15:32 calabashdad 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 一张图来说明: 阅读全文
posted @ 2013-11-26 17:23 calabashdad 阅读(729) 评论(0) 推荐(0) 编辑
摘要: 1.添加完需要提交的文件,要先pull下,(对应着错误码1)2.重新设置下ssh的路径,在setting--network下面,用everything找到ssh.exe填上就是了 (对应着错误码128)3.提交时用户名和密码输入即可 阅读全文
posted @ 2013-11-22 14:26 calabashdad 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 鼠标在滚动条上晃动的时候捕获点击位置,设置一个生成算法,这种生成密钥的方式,想法很有创意 阅读全文
posted @ 2013-11-22 11:37 calabashdad 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 和对错无关吧 这是判断时的性格问题了 阅读全文
posted @ 2013-11-21 01:27 calabashdad 阅读(95) 评论(0) 推荐(0) 编辑
摘要: lamda用法和函数对象,回调函数 部分用法对比#include #include #include #include #include #include #include #include #include using namespace std;//////////////////////////////////////////////////////////////////////////enum Conversion_Ch{ UPPER = 0, //大写 LOWER, //小写};/*** 仿函数*/class CFunctor{public: CF... 阅读全文
posted @ 2013-11-15 16:32 calabashdad 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 用法小demo,定义参见crt目录下的new头文件源码#include #include #include #include #include using namespace std;void __cdecl newhandler(){ cout << "The new_handler is called:" << endl; throw bad_alloc(); return;}int main(){ set_new_handler (newhandler); try { while (1) { new i... 阅读全文
posted @ 2013-11-15 16:31 calabashdad 阅读(502) 评论(0) 推荐(0) 编辑