看板 Programming 關於我們 聯絡資訊
※ 引述《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