字符串二维数组排序(知识点)

struct node
{
    char data[100];
} s[100010];

bool cmp(const node &x, const node &y)
{
    if(strcmp(x.data, y.data) < 0)
        return  true;
    return false;
}

sort(s, s+n, cmp);
原文地址:https://www.cnblogs.com/Silence-AC/p/3383027.html