struct w { char res[15]; }wd_rs[100]; bool cmp(struct w a,struct w b) { return strcmp(a.res,b.res)<0;//升序 } sort(wd_rs,wd_rs+z,cmp);
ACM解题感悟
原文:http://www.cnblogs.com/gonsedup/p/7208664.html