bool compare(str str1, str str2) { return str1.i < str2.i ; } sort(str1.begin(), str1.end(), compare);
struct str { public: std::string st; int i; public: str( std::string st1, int i1): st( st1), i( i1) {} };
65,187
社区成员
250,526
社区内容
加载中
试试用AI创作助手写篇文章吧