C++ 模板重载 << 运算符出错 error: template-id ‘operator<< <int>’ for ‘std::ostream& operator<<(std::ostream&, Complex<int>&)’ does not match any template declaration

#include <iostream> using namespace std; template<typename T> class Complex { public : Complex() { } Complex(T a, T b) { this->a = a; this->b = b; } v ...

YUM13 @ 2020/07/29