Re: 一個不知錯在哪裡的C++程式

看板Programming作者時間18年前 (2007/09/16 19:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
> void triangle::sss(double high,double base,char *name) > { > _high = high; > _base = base; > _name = name; > } ///恕刪/// > int main() > { > triangle frist; > frist.sss(5.0,4.0,"tony"); > cout << frist.sss() ^^^^^^^^^^^ 沒有這個function阿........... 所以才會說找不到這個函式 因為你只定義了 sss(double,double,char*)這個函式 > << endl; > system("pause"); > } -- ▄▄▄▄▄▄▄ ▄▄▄▄ ▄▄▄▄▄▄ <telnet://bbs.cs.nctu.edu.tw> █▄▄▄▄█ █ ▄▄▄▄▄█ Player: truck ▄█▄▄▄▄█ ▄▄▄█ █▄▄▄▄▄ From: r21913.cs.nctu.edu.tw ☆ 次世代BS2 ☆ 可申請個人板 150MB 相簿 http://pic.bs2.to 交大資訊人 250MB
文章代碼(AID): #16xGpo00 (Programming)
文章代碼(AID): #16xGpo00 (Programming)