please tell me what's the mean of erros
56 C:\Dev-Cpp\vfh\vfh.cpp invalid types `double*[double]' for array subscript
56 C:\Dev-Cpp\vfh\vfh.cpp no matching function for call to `atan2(double)'
note C:\Dev-Cpp\include\math.h:146 candidates are: double atan2(double,
double)
note C:\Dev-Cpp\include\math.h:146 candidates are: double atan2(double,
double)
note C:\Dev-Cpp\include\math.h:146 long double std::atan2
(long double, long double)
note C:\Dev-Cpp\include\math.h:146 float std::atan2(float, float)
Line 24: cell_dir is a double *, but here it's being used as a double **. Even worse, cell_dir is uninitialized. atan2() takes two parameters. Judging from the call, I'd say you meant to use atan().