摘要: struct Context{ int x, y;};class FlyWeight{ // data. const string m_str;public: FlyWeight(const string &str) : m_str(str) {}public: // Interface. void draw(Context &c) { cout " <<m_str <<endl; }};int main(int argc, char *argv[]){ Context c1 = {4, 8}, c2 = {0, -4},... 阅读全文
posted @ 2013-01-29 09:41 walfud 阅读(106) 评论(0) 推荐(0) 编辑