How to avoid define a same function in several struct?

前端 未结 0 731
没有蜡笔的小新
没有蜡笔的小新 2021-02-20 08:11

I need to define some struct, to pass msg in socket.

please see the example:

// a.hpp
Class A {
 public:
  int a;
  void Show(FILE* stream) const {  // Sho         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题