c++string转int

string s ="0xffff";
int t =0;
sscanf(s.c_str(),"%x",&t);

posted on 2012-08-14 16:28  Orz..  阅读(145)  评论(0)    收藏  举报

导航