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在 C 中使用函数?
itoa
原型是:
char*itoa(int_Val,char*_DstBuf,int_Radix)
我认为这int_Val是我要转换的值 char*_DstBuf,是我要存储结果的字符串但是什么是int_Radix?
int_Val
char*_DstBuf
int_Radix
它是转换为的基础
10 - 十进制 16 - 十六进制 8 - 八进制
每个手册页http://www.cplusplus.com/reference/cstdlib/itoa/