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

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

 

#include <sstream>

char *p = "15446744073709551616";

stringstream strValue;

strValue << p;

uint64_t  value;

strValue >> value;

 

posted @ 2013-04-11 15:18  chang290  阅读(2384)  评论(0编辑  收藏  举报