设计模式
aiwobiezoukaicnew
平凡、简单、自律强高度。(You can destroy me , but you can't control me, this is me ,this is the fucking for myself.)
展开
-
C++单例设计模式
#include using namespace std;class Engine{public: static Engine* getInstance(); void showMe(); private: Engine(){}; Engine(constEngine &t);原创 2014-12-18 22:17:39 · 430 阅读 · 0 评论 -
c++组合设计模式
学习c++组合设计模式原创 2014-12-18 21:45:33 · 398 阅读 · 0 评论 -
C++11新特性(一)auto for( : )语句简单使用
cocos2dx3.2里面用到许多c++11的新特性:学习下, 话不多说,代码献上:#include #include #include using namespace std;#define CC_CONSTRUCTOR_ACCESS protectedclass Sprite{public:原创 2014-12-19 17:22:02 · 790 阅读 · 1 评论 -
代理模式
using System;using System.Collections.Generic;using System.Text;namespace 代理模式{ class Program { static void Main(string[] args) { SchoolGirl jiaoji转载 2015-02-27 17:22:53 · 251 阅读 · 0 评论 -
模板方法模式
using System;using System.Collections.Generic;using System.Text;namespace 模板方法模式{ class Program { static void Main(string[] args) { AbstractClass c;转载 2015-02-27 17:28:07 · 332 阅读 · 0 评论 -
简单工厂模式
using System;using System.Collections.Generic;using System.Text;namespace Operation{ /// /// 运算类 /// public class Operation { private double _numberA =转载 2015-02-27 17:25:45 · 373 阅读 · 0 评论