摘要: C++:基本类型的转换 一、string转为int 【参考:https://blog.csdn.net/m0_37316917/article/details/82712017】 C++ string pp = "dagah"; cout (二)const char 指针遍历string,元素依次赋 阅读全文
posted @ 2019-12-06 17:32 musecho 阅读(334) 评论(0) 推荐(0) 编辑
摘要: C++:map用法 一、map基本用法 键值对 第一个参数为键的类型,第二个参数为值的类型。 源代码 C++ include include using namespace std; int main(){ map table; table[1]=1; cout 运行结果: 2. map内元素值为常 阅读全文
posted @ 2019-12-06 16:56 musecho 阅读(7992) 评论(0) 推荐(1) 编辑