写代码是一种艺术,甚于蒙娜丽莎的微笑!

不拼搏,枉少年!

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2015年11月17日

摘要: 原文链接:http://blog.csdn.net/tsinfeng/article/details/5844838 1、atoi 功 能:把一字符串转换为整数 用 法:int atoi(const char *nptr);详细解释:atoi是英文array to integer 的缩写。atoi( 阅读全文
posted @ 2015-11-17 17:02 RunningSnail 阅读(2223) 评论(0) 推荐(0) 编辑

摘要: 转载:http://www.cnblogs.com/luxiaoxun/archive/2012/08/03/2621803.html 1、字符串数字之间的转换 字符串 字符数组(1)string --> char * string str("OK"); char * p = str.c_str() 阅读全文
posted @ 2015-11-17 17:00 RunningSnail 阅读(582) 评论(0) 推荐(0) 编辑