#!/usr/bin/env cscript #include int main(int argc, char *argv[]) { int index = 1, column_string_needle = 0; char column_string[3 + 1] = {0}; while (index >= 26) { column_string[column_string_needle++] = index + 'A'; printf("%d\n", index % 26); index /= 26; } column_string[column_string_needle] = index + 'A'; printf("[%s]\n", column_string); }