gpt4 book ai didi

c - 使用 itoa() 函数

转载 作者:太空宇宙 更新时间:2023-11-04 04:28:04 27 4
gpt4 key购买 nike

<分区>

当我编译下面的代码时,编译器显示了对 itoa() 函数的 undefined reference 。但是,当我搜索时;我发现 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;

}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com