try it, then you know it____________just do it , as love easily fade.

一次只有一个目标,步子迈小些,抑制一次实现所有功能的冲动。 过程如何结果就如何,行动是欢喜的,不管是兴奋还是沮丧的情绪都对结果无益。贵在持之以恒

导航

2013年3月19日 #

库函数, string , integer to char

摘要: #include //use of itoa: integer to char//puts output char* //convert string to char* //string name with accumulated acount.string sName = "book-";int ... 阅读全文

posted @ 2013-03-19 20:24 吾一 阅读(185) 评论(0) 推荐(0) 编辑

C C++ 数字转化为字符串的库函数

摘要: 1、itoa 功 能:把一整数转换为字符串 用 法:char *itoa(int value, char *string, int radix); 详细解释:itoa是英文integer to array(将int整型数转化为一个字符串,并将值保存在数组string中)的缩写. 参数: value: 待转化的整数。 radix: 是基数的意思,即先将value转化为radix进制的数,范围介于2-36,比如10表示10进制,16表示16进制。 * string: 保存转换后得到的字符串。 返回值: char * : 指向生成的字符串, 同*string。 备注:该函数的头... 阅读全文

posted @ 2013-03-19 14:22 吾一 阅读(1755) 评论(0) 推荐(0) 编辑