adapter.cpp
来自「设计模式中的适配器模式(adapter)的程序实现」· C++ 代码 · 共 15 行
CPP
15 行
// Adapter.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "Player.h"
int _tmain(int argc, _TCHAR* argv[])
{
Player* wm = new translator;
wm->attack();
wm->defense();
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?