C++学习笔记(28) :常用算术生成算法

0 阅读1分钟

注意:算术生成算法属于小型算法,使用时包含头文件为 #include

算法简介

- accumulate    计算容器元素累计之和
- fill          向容器中添加元素

accumulate

image.png

image.png

fill

image.png

image.png