【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.6.22 itoa
Contents
Description
Converts the integer value into a character string
Syntax
char* itoa( int value, char *buffer, int radix )
Parameters
- value
- [input]the integer to be converted to string
- buffer
- [output]the buffer that is to hold resulting string
- radix
- [input]the base of the number; must be in the range 2 - 36.
Return
the resulting string.
Examples
EX1
void itoa_ex(int num, int radix) { string strResult; itoa(num, strResult.GetBuffer(COM_LENGTH), radix); strResult.ReleaseBuffer(); out_str(strResult); }
Remark
Header to Included
origin.h