c++实现适配器模式完整源代码 AdapterPattern.hpp main.cpp AdapterPattern.hpp #ifndef __SINGLETON_H__ #define __SINGLETON_H__ #include <iostream> #