今天我在我的一个类中重载了#ifndefTERMINALLOG_HH#defineTERMINALLOG_HHusingnamespacestd;classTerminallog{public:Terminallog();Terminallog(int);virtual~Terminallog();templateTerminallog&operator如您所见,我在头文件中定义了重载运算符,并在我的.cc文件中继续实现它://strippedcodetemplateTerminallog&Terminallog::operatorindent();cout然后我使用我的新类创建了一个