Oops! I'm sorry for that. I added that to the Car class so that I could verify the program was working. Just delete that loop and line. But if you really want to keep it, here it is
void init()
{
memset(this, 0, sizeof(*this));
}
Note that initializing a class like that may not always work correctly, and in many cases might actually destroy important data. Use this syntax very sparingly. As a general rule of thumb it is better to initialize each member object individually.