c++设计模式
gorunbu
很烦。。。。。。。。。。。。。。。
展开
-
终于好了一个sigslot
sigslot.h// sigslot.h: Signal/Slot classes // // Written by Sarah Thompson (sarah@telergy.com) 2002. // // License: Public domain. You are free to use this code however you like, with the proviso that原创 2015-05-08 20:15:28 · 1332 阅读 · 0 评论 -
forward declaration 前置声明
when class A and class relationship is very close, like that// chair.h #include "room.h" class chair { room* a; public: chair(void); ~chair(void); };// chair.cpp #include <iostream>//#inclu原创 2015-06-30 11:19:39 · 476 阅读 · 0 评论