摘要:
#define BASE_MAX (26 + 10)char const* itostr(int x, int base){ /* map 居中, 支技负余数 */ static char const * const map = "ZYXWVUTSRQPONMLKJIHGFEDCBA987654321" "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" + (BASE_MAX - 1); /* 静态缓冲,不支持多线程, 每次调用都覆盖上次的值 */ static char buf[BASE_MAX]; ... 阅读全文