注册 登录
编程论坛 C++教室

请教一个compile纠错:subscript requires array or pointer type. 是怎么回事? 新手寻帮助~~

morrlli 发布于 2010-10-13 20:45, 617 次点击
accuracy_online[count_online]   =   sqrt   (   pow   (lat   -   lat_array[location_index_count],2)   +   pow   (lon   -   lon_array[location_index_count],2));
想求一下   这个计算的答案,为什么纠错给出
subscript   requires   array   or   pointer   type.?

"pow ":too   few   arguments   for   call   through   pointer-to-function

请高手指教啊~~!
1 回复
#2
morrlli2010-10-13 21:18
多项式分解,解决。
可以结贴了。
1