会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
YUM13
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
随笔分类 -
C++
日常编写的一些C++代码,分享自己在写C++时遇到的问题和收货
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
阅读全文
posted @
2020-07-29 00:31
YUM13
阅读(1112)
评论(0)
推荐(0)
公告