c++类内 operator<<重载和 类外模板operator<<写法测试: 将short 和 float数据载入

#include <QCoreApplication> #include <iostream> class A{ public:     A& operator << (char ch); }; A& A::operator << (char ch) {     std::cout<<(int)ch<<std::endl;     return *this; } template <class T
相关文章
相关标签/搜索