std::fill

在[first, last)范围内填充值

#include <iostream>
#include <vector>
#include <algorithm>
int main()
{
std::vector<int> v;
v.resize();
std::fill(v.begin(), v.end(), );
return ;
}

std::fill_n

在[fist, fist + count)范围内填充值

#include <iostream>
#include <vector>
#include <algorithm>
int main()
{
std::vector<int> v;
v.resize();
std::fill_n(v.begin(), , );
std::fill_n(v.begin() + , , );
return ;
}

最新文章

  1. Extjs.Button 按钮
  2. Sublime一键预览
  3. mysql多种备份方式比较及实现
  4. SQL Server 2008 评估期已过解决方法
  5. windows 下my.ini的配置优化
  6. 简述HP iLO中的几种开关机选项
  7. nagios架构及windows,linux客户端配置
  8. 让IE浏览器支持CSS3圆角的方法
  9. android market 选择
  10. 关于&quot;zoom“ 的一点小认识
  11. 第16章 观察者模式(Oberver Pattern)
  12. HDU 1022 Train Problem I 用栈瞎搞
  13. c++の奇技淫巧
  14. jQuery学习笔记之extend方法小结
  15. lucene全文检索基础
  16. Android利用ViewPager仿微信主界面-android学习之旅(78)
  17. struts2实现ajax校验的2种方法
  18. leetcode 199. Binary Tree Right Side View 、leetcode 116. Populating Next Right Pointers in Each Node 、117. Populating Next Right Pointers in Each Node II
  19. Discuz常见小问题-如何关闭验证码
  20. OO的第一次死亡

热门文章

  1. Good Bye 2013---B. New Year Present
  2. nginx使用自认证的https证书
  3. linux安装Eclipse c++环境
  4. hdu1087Super Jumping! Jumping! Jumping!(最大递增序列和)
  5. biz处理dao事务处理层
  6. A - Alignment of Code(推荐)
  7. javascript——ajax应用
  8. TMemoryStream、String与OleVariant互转
  9. Spring Boot——开发新一代Spring应用
  10. 手机字段存储报错 :Warning Code : 1264 Out of range value for column &#39;buyer_tpl&#39; at row 1