简体   繁体   中英

compiler error, c++

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:

BuildTree(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?

调用BuildTree函数时,当前范围中可能有一个名为length的函数可访问。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM