#include using namespace std; class falling_thing { public: float posx, posy, posz; float velx, vely, velz; float fall_rate; /* Default constructor */ falling_thing() { posx = posy = posz = 0; // .. and so on } /* Parameterized constructor */ falling_thing(float xp, float yp, float zp, float xv, float yv, float zv, float fr){ posx = px; // .. and the others } void move(){ posx += velx; posy += vely; posz += velz; vely -= fall_rate; } };