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