简体   繁体   English

编译器错误,C ++

[英]compiler error, c++

I am implementing an octree tree in c++ using visual studio. 我正在使用Visual Studio在C ++中实现八叉树。 When i call the build function i get this error: 当我调用构建函数时,出现此错误:

error C2664: 'BuildTree' : cannot convert parameter 5 from 'overloaded-function' to 'int' 1 错误C2664:“ BuildTree”:无法将参数5从“重载函数”转换为“整数” 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? length是变量还是函数名? Did you mean to call length() ? 您是要打电话给length()吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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