2016年10月30日

如何对二维字符数组进行排序

摘要: 有时候需要把 char str[][] = {"abc", "bcd", "efg", "gdk"} 这样的进行排序? 输出 abc bcd efg gdk 如果你直接sort(str, str + 4, cmp)这样是不行的,因为字符串的赋值操作都没有定义 就是你不能用一个中间变量char tem 阅读全文

posted @ 2016-10-30 09:50 stupid_one 阅读(710) 评论(0) 推荐(0)

导航