摘要:
对"<<"和">>"重载的函数形式如下istream& operator >> (istream & , 自定义类 &) ;ostream& operator << (ostream & , 自定义类 &) ;只能将重载">>"和"<<"函数作为友元函数或普通函数,而不能将它们定义为成员函数 1 #include <iostream.h> 2 3 //using namespace s 阅读全文
posted @ 2011-10-22 13:12
MATRIX | yan
阅读(2506)
评论(0)
推荐(2)