#include <algorithm>
#include <iostream>
#include <iomanip>
#include <cstring>

using namespace std;

int main()
{
    const char* sort_char_array[] = { "about", "this", "and", "url", "that", "the", "i", "hi" };

    sort(sort_char_array,sort_char_array+8,[](const char * a, const char * b)
         { return strlen(a) < strlen(b); });
    for( auto s: sort_char_array)
        cout << s << endl;
}
