开发者

compiler error, c++

开发者 https://www.devze.com 2023-02-17 22:41 出处:网络
I am implementing an octree tree in c++ using visual studio. When i call the build function i get this error:

I am implementing an octree tree in c++ using visual studio. When i call the build function i get this error:

error C2664: 'BuildTree' : cannot convert parameter 5 from 'overloaded-function' to 'int' 1

this is the line that i get the error:

B开发者_JS百科uildTree(parent, 0.0 , 0.0, 0.0, length , maxLevel,0, 0.25);

and the function is this:

treeNode * BuildTree( treeNode * parent, float xx , float yy, float zz , int length ,int maxLevel,int val,float threshold)

Can anyone help me to correct this error?


There is probably a function named length accessible in the current scope when you call the BuildTree function.


Is length a variable or a function name? Did you mean to call length()?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号