关于C++类模板内部 / 外部声明友元模板函数的那些事儿 1.内部声明定义友元类模板函数 例: "> using namespace std; template <typename T> class Complex { friend ostream& operator<<(ostream& out, Complex& c) { out << c.a << "," << c.b ; return out; } public: Complex(T a, T b) :a(a),b(b){} Com...