我正在C++中使用visual studio實現八叉樹。 當我打電話構建功能我得到這個錯誤:編譯錯誤,C++
error C2664: 'BuildTree' : cannot convert parameter 5 from 'overloaded-function' to 'int' 1
這是我得到的錯誤行:
BuildTree(parent, 0.0 , 0.0, 0.0, length , maxLevel,0, 0.25);
和功能是這樣的:
treeNode * BuildTree(treeNode * parent, float xx , float yy, float zz , int length ,int maxLevel,int val,float threshold)
燦有人幫我糾正這個錯誤?
郵政編碼您聲明的長度/ maxLevel – fazo 2011-03-21 11:49:24