摘要: #include <stdio.h>#include <string.h>void convto(char *s, int n, int b){ char bit[]={"0123456789ABCDEF"}; int len; if(n==0) { strcpy(s,""); return; } convto(s, n/b, b); len = strlen(s); s[len] = bit[n%b]; s[len+1] = '\0';}void main(void){ char s[80]; in... 阅读全文
posted @ 2013-06-16 15:55 夜雨阑珊 阅读(518) 评论(0) 推荐(0) 编辑