11.8-4

// prototype

friend Stonewt operator*(double mult, const Stonewt & s);

// definition — let constructor do the work

Stonewt operator*(double mult, const Stonewt & s)

{

return Stonewt(mult * s.pounds);

}

 posted on 2021-03-23 22:58  HuJiao粉  阅读(19)  评论(0)    收藏  举报