T
tim.lino
Dear all,
I would like to sort the elements in a vector in a lexicographical
order. The elements are defined as:
class E
{
public:
int x;
int y;
}
where x is the first rank and y is the second rank in the
lexicographical order. Suppose I have vector<E>, how I can sort E in a
lexicographical order? Is it any built-in function to do that?
Thank you.
I would like to sort the elements in a vector in a lexicographical
order. The elements are defined as:
class E
{
public:
int x;
int y;
}
where x is the first rank and y is the second rank in the
lexicographical order. Suppose I have vector<E>, how I can sort E in a
lexicographical order? Is it any built-in function to do that?
Thank you.