Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试使用该功能itoa()时,我收到警告:
itoa()
函数的隐式声明在 c99 中无效。
我在标题中包含了 stdlib.h。我试图在一个函数中调用这个函数,我不确定这是否被允许。
问题是 itoa() 不是标准函数。
您应该查看此链接,它为您提供了一些替代实现
常用的替代方法itoa是sprintf/ snprintf。这些是stdio.h.
itoa
sprintf
snprintf
stdio.h