谢谢

解决方案 »

  1.   

    _itoa, _i64toa, _ui64toa, _itow, _i64tow, _ui64tow
    Convert an integer to a string.
      

  2.   

    还有char *_ltoa( long value, char *string, int radix );
    等。MSDN中可以查到的呀!
      

  3.   

    CString str;
    int a=12;
    str.format("%d",a);
    ================================================================
      

  4.   

    CString str;
    int a=12;
    str.format("%d",a);
    ================================================================
      

  5.   

    最简单的就是 frank_zhao(frank) 的方法。注意" "之间的东西,跟c语言中的sprintf有些相似。
      

  6.   

    after all,you can use sprintf().
      

  7.   

    itoa()等等
    msdn里有程序例子!
      

  8.   

    Str(number);    //Returns a Variant (String) representation of a number.The required number argument is a Long containing any valid numeric expression.