(转)新建一个Agent/MyAgent详细过程
摘要:
一个简单的例子,但说明了Tcl和c++是如何映射的。程序的目的是创建一个新的网络对象类“MyAgent”,它是”Agent”的子类。 下面把我的ex-linkage.cc代码贴在这里://this is a simple agent just for show#include <stdio.h>#include <string.h>#include "agent.h"class MyAgent : public Agent {public:MyAgent();protected:int command(int argc,const char*cons 阅读全文
posted @ 2013-05-06 16:18 原来... 阅读(633) 评论(0) 推荐(0)
浙公网安备 33010602011771号