作者freesamael (烧卖)
站内Programming
标题Re: 一个不知错在哪里的C++程式
时间Sun Sep 16 19:54:46 2007
※ 引述《[email protected] ( )》之铭言:
: 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