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

看板Programming作者 (燒賣)時間18年前 (2007/09/16 19:54), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
※ 引述《jiannrong@kkcity.com.tw ( )》之銘言: : 59 C:\Documents and Settings\rong\桌面\test\test1_1.cpp no matching function : for call to `triangle::sss()' : : void triangle::sss(double high,double base,char *name) : : int main() : { : triangle frist; : frist.sss(5.0,4.0,"tony"); : cout << frist.sss() : << endl; : system("pause"); : } 參數不合,只有 triangle::sss(double, double, char) 沒有 triangle::sss(), 所以跑出這樣的錯誤訊息。 -- Licensed under CC2.5(TW) by-sa, Samael Wang. http://creativecommons.org/licenses/by-sa/2.5/tw/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.135.82.153
文章代碼(AID): #16xHc8Ji (Programming)
文章代碼(AID): #16xHc8Ji (Programming)