lab6/Circuit.cpp
void Circuit::ShowWhoDidNotFinish() {
	std::cout << "The cars that did not finish are:";
	for (int i = 0; i < CarVector.size(); i++)
	{
		if (CarVector[i]->getFuelCap() / CarVector[i]->getFuelCons() * 100 <= this->length)
			std::cout << CarVector[i] << ' ';
	}
}
// it will print the time each car needed to finish the circuit sorted from the fastest car to the   slowest.
it will print the time each car needed to finish the circuit sorted from the fastest car to the   slowest.
it will print the time each car needed to finish the circuit sorted from the fastest car to the slowest .
void Circuit::ShowWhoDidNotFinish() {
	std::cout << "The cars that did not finish are:";
	for (int i = 0; i < CarVector.size(); i++)
	{
		if (CarVector[i]->getFuelCap() / CarVector[i]->getFuelCons() * 100 <= this->length)
			std::cout << CarVector[i] << ' ';
	}
}
void Circuit :: ShowWhoDidNotFinish ( ) { std :: cout << " " ; for ( int i = 0 ; i < CarVector . size ( ) ; i ++ ) { if ( CarVector [ i ] -> getFuelCap ( ) / CarVector [ i ] -> getFuelCons ( ) * 100 <= this -> length ) std :: cout << CarVector [ i ] << ' ' ; } }
it will print the time each car needed to finish the circuit sorted from the fastest car to the   slowest.
it will print the time each car needed to finish the circuit sorted from the fastest car to the slowest .