2011年5月29日

Interpreter (C++实现)

摘要: http://blog.csdn.net/roynee/archive/2009/09/30/4621312.aspx 阅读全文

posted @ 2011-05-29 23:29 IT@民工 阅读(230) 评论(0) 推荐(0) 编辑

Command (C++实现)

摘要: // Command.cpp : 定义控制台应用程序的入口点。///*该实现为最简单方式。*/#include "stdafx.h"#include <iostream>using namespace std;class Command{public :Command(){}virtual~ Command(){}virtual void Execute()=0;};class Receiver{public:Receiver(){}virtual ~Receiver(){} void Action() { cout<<"Do execut 阅读全文

posted @ 2011-05-29 20:38 IT@民工 阅读(173) 评论(0) 推荐(0) 编辑

导航