How to sort double values of a struct in c?

前端 未结 0 1060
花落未央
花落未央 2020-12-09 04:45

I am trying to sort x values of Points. For example: if Point* pt1->x > Point*pt2->x. then pt2 would be first.

typedef struct pt{
  float x;
  float          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题