[問題] 林宗男 11-17
寫destructor 要幹麻?
我在 + - * 裡面有放一個 tempPolynomial 要return 用
然後每次運算子跑過後
那個temp的destructor就會跳出來(ex: cout<<"Destructor runs";)
那...除此之外 還可以幹麻...
--
I am the bone of my paper. Pen is my body, and ink is my blood.
I have finished over a thousand assignments.
Unknown to pass. Nor known to fail.
Have withstood pain to take many midterms.
Yet, those hands will never write anything.
So as I pray, Unlimited homeworks.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.248.166.161
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):