2016年8月9日

C++有没有string转化int的函数,怎样转换

摘要: 有两种方法1. c++中string到int的转换1) 在C标准库里面,使用atoi:#include <cstdlib>#include <string>std::string text = "152";int number = std::atoi( text.c_str() );if (errn 阅读全文

posted @ 2016-08-09 15:37 矮油~ 阅读(498) 评论(0) 推荐(0)

导航