struct MyStruct
{
int a,b;
bool operator<(const MyStruct str)
{
return b<str.b;
}
}
MyStruct * my=new MyStruct[100];
sort(my,my+100);
struct MyStruct
{
int a,b;
bool operator<(const MyStruct str)
{
return b<str.b;
}
}
MyStruct * my=new MyStruct[100];
sort(my,my+100);