/**************************      WZ ASUST  2016(1)C++ primer中关于适配器的定义——适配器(adaptor):是使一种事物的行为类似于另外一事物的行为的一种机制。(2) 类间需要互相传递参数,但是接口类型不相同,  中间加上适配器就能起转换操作的作用。(3)STL定义了3种形式的适配器:               函数适配器               容器适配器               迭代器适配器**************************/#include"wz.h"#include"sts.h"class Target{  public:  virtual void Request()  {  cout<<"this is the target's request"<
<<"this is the specialRequest"<
Request();delete pTarget;getchar();return 0;}/************* main测试用Adaptr 生成一对象  并以父类 Target 的pTarget指针指向这一块空间再访问原有的R函数 发生了变化被改写************/