摘要: 1. 整型转字符串,定长格式化16进制:如:0X10 --> 0X000000101 sprintf(szData, "0x%08x", dwData);//注意中间的0,长度不足,用0填充2. 字符串转整型如:"1001" --> 91 int nDec =strtoul(szBin, NULL,... 阅读全文
posted @ 2014-07-27 00:03 luzhiyuan 阅读(274) 评论(0) 推荐(0) 编辑