How do you pass a structure array to another class? For example, I want to pass the structure array point[150] to a function in another class/source file.
#include...
struct Points {
int xCoordinate;
int yCoordinate;
int zCoordinate;
} point[150];
int main(int argc, char **argv)
{ ...
void DisplayPoints();
The function I want the array to be used in:
void DisplayPoints(Point point[8].xCoordinate){ // I think this is wrong
sprintf(point[8].xCoordinate,"%.0f", 1.0 * xCoordinateText[5]);
BasicFunctionsCode.render2DBitmapText(1080, 100, (void *)font, xCoordinateText[5]);
} // end of DisplayPoints