#!/usr/bin/env cscript #include int main(int argc, char *argv[]) { char alphabet_column_index[26 + 1] = {0}, column_index[3 + 1] = {0}; for (char alphabet_index = 'A'; alphabet_index <= 'Z'; alphabet_column_index[alphabet_index - 'A'] = alphabet_index, alphabet_index++); int index = 26, length_alphabet_column_index = 0; while (index >= 0) { column_index[length_alphabet_column_index] = index % 26 + 'A' - 1; index /= 26; length_alphabet_column_index += 1; } printf("%s\n", column_index); return 0; }