I guess this function must exist though I don't know;
you can try *_itoa( int value, char *string, int radix );
and then atoi(*string)

解决方案 »

  1.   

    整数在计算机中都是存为二进制的形式,计算机只认识0和1,因此数制的转换只是给用户看的,从十进制转换为八进制或十六进制都是输出时的显示模式而已。我记得在C中有printf()函数可以实现!在VC++中可用
    char *_itoa( int value, char *string, int radix );
    其中value就是你要转换的数,string是输出的字符串,radix就是基数,若为2即输出二进制,为8则输出八进制,依此类推。radix的取值范围是2-36!