#include <iostream>
#include <vector>

class Point
{
public:
    float x, y, z;
};

int main() {
	std::vector<Point> vect;
	Point point_;
	
	int num_instances = 5;
	
	for (int i = 0; i < num_instances; i++)
    {
        vect.push_back(point_);
    }
    
    vect[0].x = 1.0f;
    vect[1].x = 2.0f; // if they were the same instance, both x would be set to 2.0f
    
    // as you will see, they are separate values
    std::cout << vect[0].x << " " << vect[1].x << std::endl;
    
	return 0;
}