| c++ Programming Glossary: comparebyareaC++ vector sorting with my own Function http://stackoverflow.com/questions/13145370/c-vector-sorting-with-my-own-function  sort it by ascending area sort myVector.begin myVector.end compareByArea so at the Vehicle.h I did class VehicleTwoD private some variable.. I did class VehicleTwoD private some variable public bool compareByArea const VehicleTwoD const VehicleTwoD and at Vehicle.cpp i did.. VehicleTwoD and at Vehicle.cpp i did this bool VehicleTwoD compareByArea const VehicleTwoD a const VehicleTwoD b return a.getArea b.getArea.. 
 |