STL
白小枫!
蜗牛也要慢慢的爬
展开
-
C++ STL小白学习笔记(零)——模板类template
前言:最近在准备CCF-CSP考试,学习一下STL模板库,阅读本文需对C++有基本了解(虽然本文介绍的也是基础内容); 学习视频:学习C++标准模版库(STL) 目录 0:模板-template 0.1在函数中使用template: 0.2在类中使用template 0.3 运算符重载 0:模板-template template关键字用于声明模板类; 0.1在函数中使用template: 在函数声明的上一行输入以下代码: template <typename T>.原创 2020-08-16 22:37:09 · 305 阅读 · 0 评论 -
C++STL小白学习笔记(一)——STL概述
使用STL的理由: /+ * Reasons to use C++ standard library : * 1. Code reuse, no need to re- invent the wheel. * 2. Efficiency (fast and use less resources)。Modern C++ compiler are usually tuned to optimize for C++ s tandard library code . * 3. Accurate, less bu原创 2020-08-17 01:19:25 · 190 阅读 · 0 评论