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