C语言,整数数组转化为字符串
C语言,整数数组转化为字符串
日期:2017-10-03 06:50:09 人气:1
C有“整数数组转化为字符串”的专用库函数char *itoa(int num,char *str,int radix)。声明一个存放转换后的字符串的二维字符数组,将整型数组的元素作为num来调用itoa函数,将结束存入二维数组即可。举例代码如下:
//#include "stdafx.h"//If the vc++6.0, with this line.#include "stdio.h"#include "stdlib.h