1234567891011121314151617181920212223 |
- #include "stdint.h"
- #include <string>
- using namespace std;
- static int64_t stringToint64(const string& strValue)
- {
- #ifdef WIN32
- return _atoi64(strValue.c_str());
- #else
- return atoll(strValue.c_str());
- #endif
- }
- static string int64Tostring(int64_t nValue)
- {
- char sz[100];
- #ifdef WIN32
- sprintf(sz, "%I64u", nValue);
- #else
- sprintf(sz, "%llu", nValue);
- #endif
- return sz;
- }
|