当我编译下面的代码时,编译器显示了一个未定义的对itoa()函数的引用。但是,当我搜索时,我发现itoa()是标准的。为甚麽呢?
#include <stdio.h>
#include<stdlib.h>
int main()
{
int i;
char buffer [33];
printf ("Enter a number: ");
scanf ("%d",&i);
itoa (i,buffer,10);
printf ("decimal: %s\n",buffer);
return 0;
}发布于 2016-09-14 20:36:02
请检查下面的链接。
http://www.cplusplus.com/reference/cstdlib/itoa/
itoa不是标准函数,但有些编译器支持它。
在上面的链接上,几乎没有提供它的替代方案。
https://stackoverflow.com/questions/39490556
复制相似问题