摘要: 1. 字符串数与整数之间的转化 void int2str(int num, char *str){ char *ptr = str; while(num) { *ptr++ = num%10 + '0'; num /= 10; } *ptr = '\0';} int str2int(char *str){ int num = 0; ... 阅读全文
posted @ 2007-11-07 10:52 中土 阅读(2739) 评论(0) 推荐(0) 编辑
©2005-2008 Suprasoft Inc., All right reserved.