会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
misasteria
博客园
首页
新随笔
联系
订阅
管理
2022年4月23日
运算符重载
摘要: 运算符重载可以将改变本来运算符的数据类型 有两种形式:重载为类的友元函数或成员函数 1.重载为友元函数: friend type operator 运算符( ) #include <bits/stdc++.h> using namespace std; class Complex { public:
阅读全文
posted @ 2022-04-23 17:02 misasteria
阅读(57)
评论(0)
推荐(0)
公告