Re: 一個不知錯在哪裡的C++程式
※ 引述《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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 3 篇):
Programming 近期熱門文章
PTT數位生活區 即時熱門文章