Medeali's blog

By Medeali, history, 23 months ago, In English

i am trying to sort an array of structs but i am getting compiling error this is my code https://ideone.com/mQPPxI could someone help me solve the issue please

  • Vote: I like it
  • -4
  • Vote: I do not like it

| Write comment?
»
23 months ago, hide # |
 
Vote: I like it -8 Vote: I do not like it

Auto comment: topic has been updated by Medeali (previous revision, new revision, compare).

»
23 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

You have to define operator < for your struct or pass a custom comparator to sort.