C++ 中int,char,string,CString类型转换
摘要:
1. c++中string到int的转换1) 在C标准库里面,使用atoi:#include #include std::string text = "152"; int number = std::atoi( text.c_str() ); if (errno == ERANGE) //可能是s... 阅读全文
posted @ 2014-07-31 16:13 折翼的猪 阅读(218) 评论(0) 推荐(0) 编辑