Hi, I am very new to enum and clases I am tring to do a search can someone tell me what is the proper way of doing the search.<br><br>I have the following function.<br>CRentalCarLot is the CLASS NAME<br><br>CRentalCar::VEHICLE_TYPE eVehicleType is my enums<br><br>int CRentalCarLot::FindFirstCar(CRentalCar::VEHICLE_TYPE eVehicleType) const<br>{<br><br>for (int nsub=0; nsub<m_nCurrentCarCount;nsub++)<br>{<br>if (eVehicleType[m_aRentalCars][nsub] == <br>//I THINK THE IF(eVehicletype comparison is wrong.<br><br>CRentalCar.GetVehicleType())<br>{<br> return 1;<br>}<br>}<br><br>Any sugestions anyone <br>Villica<br><A HREF="mailto:villica67@hotmail.com">villica67@hotmail.com</A><br> <p>Villica<br><a href=mailto:villica67@hotmail.com>villica67@hotmail.com</a><br><a href= > </a><br>