现在的位置: 首页 > 综合 > 正文

C++字符串转换成uint64类型

2013年06月01日 ⁄ 综合 ⁄ 共 173字 ⁄ 字号 评论关闭

参考网址:http://blog.csdn.net/to_utopia/article/details/5783738

 

#include <sstream>

char *p = "15446744073709551616";

stringstream strValue;

strValue << p;

uint64_t  value;

strValue >> value;

 

抱歉!评论已关闭.