会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xzsxzxs
博客园
首页
新随笔
联系
管理
订阅
2023年3月12日
cpp 数字和字符串相互转换
摘要: 字符串转数字 1、系统函数 strtof strtod strtold转为浮点数,参数类型是char * strtol 转为整数,自动判断字符串进制类型,参数char * stoi stof stol 参数类型string,整数可以指定进制 atoi atol atoll c语言函数,只能转10进制
阅读全文
posted @ 2023-03-12 15:39 xzsxzxs
阅读(299)
评论(0)
推荐(0)
公告