自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(0)
  • 资源 (9)
  • 收藏
  • 关注

空空如也

Sublime Text 2.0.2

Sublime Text 2.0.2 64位版 很好的编辑工具 福利版~

2014-04-17

TrueCrypt 7.1a 源代码

TrueCrypt 7.1a 源代码 源自官网

2014-04-17

[正则式工具].PowerGREP.v4.2.0.retail

[正则式工具].PowerGREP.v4.2.0.retail

2012-12-17

ndows.7.设备驱动程序开发

windows7 驱动程序 开发 教程

2012-12-17

WinRAR V4.01(32.-.64位;简体中文版)注册机

WinRAR V4.01(32.-.64位;简体中文版)注册机

2012-12-17

IDA.Pro.Advanced.5.5.去除局域网检测补丁

IDA.Pro.Advanced.5.5.去除局域网检测补丁 破解用

2012-12-17

lightroom_sdk_guide.pdf

lightroom sdk指南,lua实践之路。。。

2011-03-04

设计模式迷你手册 chm文件

设计模式速查收藏 有代码 还不错 // example /* */ class Product {}; #ifdef Implementation1 class MyProduct : public Product {}; class YourProduct : public Product {}; class TheirProduct : public Product {}; typedef int ProductId; const int MINE = 1; const int YOURS = 2; const int THEIRS = 2; /* */ class Creator { public: virtual Product* Create(ProductId); }; /* */ Product* Creator::Create (ProductId id) { if (id == MINE) return new MyProduct; if (id == YOURS) return new YourProduct; // repeat for remaining products... return 0; } /* */ class MyCreator : public Creator { public: virtual Product* Create(ProductId); }; /* */ Product* MyCreator::Create (ProductId id) { if (id == YOURS) return new MyProduct; if (id == MINE) return new YourProduct; // N.B.: switched YOURS and MINE if (id == THEIRS) return new TheirProduct; return Creator::Create(id); // called if all others fail } /* */ #endif #ifdef Implementation2 /* */ class Creator { public: Product* GetProduct(); protected: virtual Product* CreateProduct(); private: Product* _product; }; /* */ Product* Creator::GetProduct () { if (_product == 0) { _product = CreateProduct(); } return _product; } /* */ #endif #ifdef Implementation3 /* */ class Creator { public: virtual Product* CreateProduct() = 0; }; /* */ template <class TheProduct> class StandardCreator: public Creator { public: virtual Product* CreateProduct(); }; /* */ template <class TheProduct> Product* StandardCreator<TheProduct>::CreateProduct () { return new TheProduct; } /* */ class MyProduct : public Product { public: MyProduct(); // ... }; StandardCreator<MyProduct> myCreator; /* */ #endif /* */ #include "C++/MazeParts.H" /* */ class MazeGame { public: Maze* CreateMaze(); /* */ // factory methods: /* */ virtual Maze* MakeMaze() const { return new Maze; } virtual Room* MakeRoom(int n) const { return new Room(n); } virtual Wall* MakeWall() const { return new Wall; } virtual Door* MakeDoor(Room* r1, Room* r2) const { return new Door(r1, r2); } }; /* */ Maze* MazeGame::CreateMaze () { Maze* aMaze = MakeMaze(); /* */ Room* r1 = MakeRoom(1); Room* r2 = MakeRoom(2); Door* theDoor = MakeDoor(r1, r2); /* */ aMaze->AddRoom(r1); aMaze->AddRoom(r2); /* */ r1->SetSide(North, MakeWall()); r1->SetSide(East, theDoor); r1->SetSide(South, MakeWall()); r1->SetSide(West, MakeWall()); /* */ r2->SetSide(North, MakeWall()); r2->SetSide(East, MakeWall()); r2->SetSide(South, MakeWall()); r2->SetSide(West, theDoor); /* */ return aMaze; } /* */ class BombedMazeGame : public MazeGame { public: BombedMazeGame(); /* */ virtual Wall* MakeWall() const { return new BombedWall; } /* */ virtual Room* MakeRoom(int n) const { return new RoomWithABomb(n); } }; /* */ class EnchantedMazeGame : public MazeGame { public: EnchantedMazeGame(); /* */ virtual Room* MakeRoom(int n) const { return new EnchantedRoom(n, CastSpell()); } /* */ virtual Door* MakeDoor(Room* r1, Room* r2) const { return new DoorNeedingSpell(r1, r2); } protected: Spell* CastSpell() const; }; /* */

2009-12-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除