0 c++ string memory-address long-integer
我有一个地址的例子:0x003533,它是一个字符串,但要使用它我需要它是一个很长但我不知道该怎么做:S有任何人的解决方案吗?
所以字符串:"0x003533"到长0x003533 ??
Mic*_*yan 5
使用strtol(),如:
#include <cstdlib> #include <string> // ... { // ... // Assume str is an std::string containing the value long value = strtol(str.c_str(),0,0); // ... } // ...
归档时间:
15 年,5 月 前
查看次数:
399 次
最近记录:
12 年,2 月 前