hi guys i'm new to C++ especially vectors..
I've a question regarding sorting of object in a vector
my object consists of x,y and civ. so I would like to know how do I sort the value of the civ in an descending order but at the same time retaining the value of x and y attached to it..
but I have another problem, correct me if i'm wrong.
There's is no need to declare "sort", "begin" and "end" because they are a function provided by vector. But whenever i compile I will have a error msg saying that " 'begin' was not stated in the scope.
another que is that my civIndex is actually a private data in my PointTwoDImp.cpp.