那个函数能够实现将数字转换成对应的字符串??
如将整数 55 转成字符串"55"

解决方案 »

  1.   

    1. itoa(....);2. CString str;
       int i=55;
       str.Format("%d", i);
      

  2.   

    http://www.csdn.net/develop/article/18/18077.shtm
      

  3.   

    char str[20];
    itoa(55,str,10);
      

  4.   

    1. itoa(.....),我以前写的函数,使用方法:CString str;
    str = itostr(55, 10); //10是缓冲区大小,就是数字的位数CString itostr(int n, int buflen)
    {
    CString str;
    char *buffer = new char[buflen];
    itoa(n, buffer, buflen);
    str = buffer;
    delete [] buffer;
    return str;
    }
      

  5.   

    1. CString str;
       int i=55;
       str.Format("%d", i);2. char str[20];
       itoa(55,str,10);