Set up classes? I believe you mean objects of classes. Classes themselves cannot be "created" at run-time, unless you count templated classes, which still aren't created at run-time.
Code:
std::vector<Car*> cars; //vector of pointers, to avoid constructor trouble
int input;
std::cin >> input;
for(int i = 0; i < input;++i) //Create (input) cars
{
cars.push_back(new Car(constructor_parameters));
}
//Do something with all your (input) new cars
while(cars.size() > 0) //Delete all the cars, free the memory
{
delete cars.back();
cars.pop_back();
}