[問題] 沒有相對應的子函數
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
Xcode
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
如標題所述 我知道這有點白癡可是看了好久想不出哪裡有問題@@
餵入的資料(Input):
double s[1][3]={{120,24,3}},d[]={120,25,0},r[]={};
int time=0;
預期的正確結果(Expected Output):
r[0]=huygenI(s, d, s, r, 2, time);
錯誤結果(Wrong Output):
No matching function for call to 'huygenI'
程式碼(Code):(請善用置底文網頁, 記得排版)
double huygenI(double**s,double*d,double**p,double *rp,int size,int& time)
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 175.180.218.210
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1443412406.A.3C9.html
剛剛突然發現答案了==要改成pointer傳入funciton
不過倒是很好奇s不能代表pointer嗎?
※ 編輯: dinex (175.180.218.210), 09/28/2015 12:17:54
→
09/28 15:03, , 1F
09/28 15:03, 1F
→
09/28 15:04, , 2F
09/28 15:04, 2F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章
-3
16