会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
博客园
首页
新随笔
联系
订阅
管理
2010年8月27日
用c语言编写函数Htoi(s)把16进制数转成10进制的数
摘要: http://zhidao.baidu.com/question/24901138.html用c语言编写函数Htoi(s)把由16进制数字组成的字符串 转化成与之等价的整型值,字符串中允许包含0-9,a-f,A-F.#include "stdio.h"#include "string.h"int translat(char c){if(c<='9'&&c>='0') r...
阅读全文
posted @ 2010-08-27 16:50 牧羊的小牧童
阅读(7592)
评论(0)
推荐(0)
编辑
公告