首页 > 其他 > 详细

itoa,atoi ##占位

时间:2017-08-13 17:17:35      阅读:145      评论:0      收藏:0      [点我收藏+]

itoa

itoa(数值,char *buf,进制);

# include <stdio.h>
# include <stdlib.h>
int main (void)
{
    int num = 100;
    char str[25];
    itoa(num, str, 10);
    printf("The number ‘num‘ is %d and the string ‘str‘ is %s. \n" ,num, str);
    return 0;
}

 

itoa,atoi ##占位

原文:http://www.cnblogs.com/tinaluo/p/7353955.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!