随笔分类 -  C++

摘要:https://www.cnblogs.com/longl/p/9460810.html 阅读全文
posted @ 2019-12-11 21:18 decq! 阅读(436) 评论(0) 推荐(0)
摘要:转载 https://blog.csdn.net/shuzfan/article/details/53115922 阅读全文
posted @ 2019-12-06 17:04 decq! 阅读(190) 评论(0) 推荐(0)
摘要:string初始化为空:string s = ""; 其他类型转换成string:to_string()函数 stirng转换成int:int a = atoi(s.c_str()); substr substr(a,b) a起始位置,b长度 阅读全文
posted @ 2019-12-06 15:12 decq! 阅读(109) 评论(0) 推荐(0)
摘要:++i 阅读全文
posted @ 2019-12-06 14:16 decq! 阅读(118) 评论(0) 推荐(0)
摘要:emplace操作是C++11新特性,新引入的的三个成员emlace_front、empace 和 emplace_back,这些操作构造而不是拷贝元素到容器中,这些操作分别对应push_front、insert 和push_back,允许我们将元素放在容器头部、一个指定的位置和容器尾部。 两者的区 阅读全文
posted @ 2019-12-06 14:11 decq! 阅读(435) 评论(0) 推荐(0)
摘要:转载 https://blog.csdn.net/weixin_36888577/article/details/79937886 阅读全文
posted @ 2019-12-06 13:46 decq! 阅读(97) 评论(0) 推荐(0)