i want to get a value from another cpp file
for example this one is in fileone.cpp :
for (int i = 0; i < NSIZE(facerects); i++)
{
DetPar detpar;
detpar.x = facerect->x + facerect->width / 2.;
*gX=facerect->x;
detpar.y = facerect->y + facerect->height / 2.;
*gY=facerect->y;
}
and i want to get the value of *gX , *gY in file2.cpp
in java we can do that with getters= but what is the easy way to do it in c++?