#!/usr/bin/env cscript #include "stdio.h" #include "string.h" int main(int argc, char *argv[]) { const char *ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; int column_index; char *column_string[3 + 1], *needle; column_index = 26; needle = column_string; while (column_index > 0) { column_index /= 'Z' - 'A' + 1 *needle++ = column_index % ('Z' - 'A'); } printf("%s\n", column_string); }