如:ULONGLONG 45634556746734 -〉 (char *)"45634556746734"

解决方案 »

  1.   

    sorry,反了unsigned long strtoul( const char *nptr, char **endptr, int base );
      

  2.   

    好像还是放了 :)char *_ltoa( long value, char *string, int radix );
      

  3.   

    char *_i64toa( __int64 value, char *string, int radix );
      

  4.   

    char buf[32];
    unsigned __int64  u64 = 6728746378648939;
    sprintf(buf, "%I64u", uint64);就这样我重载过 << 运算来处理这个,因为标准的ostream不支持64位整数:ostream&  operator << (ostream& os, unsigned __int64 ui64)
    {
        char buf[32];
        sprinft(buf, "%I64u", ui64);
        os << buf;
        return os;
    }ostream&  operator << (ostream& os, __int64 i64)
    {
        char buf[32];
        sprinft(buf, "%I64d", i64);
        os << buf;
        return os;
    }