2014年3月15日

摘要: #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]; ... 阅读全文
posted @ 2014-03-15 20:19 Anthony-黄亮 阅读(396) 评论(6) 推荐(0) 编辑

导航