posts - 0,  comments - 1,  trackbacks - 0
re: 运算符重载 rao_warrior 2011-10-30 15:04
ostream& operator<<( /* 不能加const */ ostream& cout, constF&) //输出运算符的标准重载格式.

friend istream& operator>>(istream& is, F& f){ }//输入运算符重载标准格式

在输入重载时,F前是不能加const的,因为f的值是要改变的
<2026年6月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿

文章档案

搜索

  •  

最新评论