Use a struct to make the coordinate data and use std::vector for the list of coords, so something like this:
// Coordinate data
struct CoordXYZ
{
CoordXYZ( float X, float Y, float Z ) : x(X), y(Y), z(Z)
{
}
float x;
float y;
float z;
};
// Path data
std::vector<CoordXYZ> Path;
// Add waypoints
Path.push_back( CoordXYZ( 0.0f, 0.0f, 0.0f ) );
Path.push_back( CoordXYZ( 0.0f, 0.0f, 500.0f ) );
Path.push_back( CoordXYZ( -300.0f, 0.0f, 500.0f ) );
Path.push_back( CoordXYZ( -300.0f, 0.0f, 1000.0f ) );
To get each waypoint, use a for loop, and do Path[waypoint] to get the data. Of course, that will return a CoordXYZ type.
Your signature has been erased by a mod