基礎學習(二)

operator overloading  理論知識:  操作符本質上也是一個函數運算符。即運算符重載也就是函數進行重載。    例如:  函數外重載:這一種是非成員函數,(這裏面是沒有this指針) inline complex operator + (const complex&,const complex&y){  return complex(reaal(x)+real(y),     i
相關文章
相關標籤/搜索