Skip to main content
摩卡知识库
View All
Search
Shelves
Books
Log in
Info
Content
Books
C++
运算符重载
运算符重载
重载<<运算符
<<运算符是双目运算符,其左右分别为它的两个参数 一般情况下,<<左边为流的下一个目的地,右边为流入的内容 下例中通过重载<<来输出分数类(Rational)中的内容。(成员a:分子;成员b:分...
Search Results
Clear Search
Previous
文件IO 文件读写
Next
重载<<运算符
Back to top