Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ENUM SEARCH FUNCTION

Status
Not open for further replies.

villica

Programmer
Feb 25, 2000
332
CA
Hi, I am very new to enum and callses I am tring to do a search can someone tell me what is the proper way of doing it.<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&lt;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> &nbsp;&nbsp;return 1;<br> }<br>}<br><br>Any sugestions anyone <p>Villica<br><a href=mailto:villica67@hotmail.com>villica67@hotmail.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top