Quantcast
Viewing all articles
Browse latest Browse all 40524

Converting 'float' to 'float*'

hello,

You try to pass a value of an array at index i where function needs an array of float, which is considered a pointer. You usually don't pass the array itself but the pointer.

And you may need a double "=" in the if condition

 if(getNumIntersects(n,cxArray[i],cyArray[i],rArray[i],cx,cy,r) == 0 )

Viewing all articles
Browse latest Browse all 40524

Trending Articles