Chinaunix首页 | 论坛 | 博客
  • 博客访问: 335691
  • 博文数量: 100
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 521
  • 用 户 组: 普通用户
  • 注册时间: 2014-10-31 11:37
个人简介

活到老,学到老

文章分类

全部博文(100)

文章存档

2018年(1)

2017年(2)

2016年(11)

2015年(82)

2014年(4)

我的朋友

发布时间:2016-08-21 12:46:31

#include <iostream> #include <vector> #include <algorithm>//for_each头文件 using namespace std; int main(int argc, char *argv[]) {    vector <int> vec;    for (int i = 1; i <=10; i++)    {      &.........【阅读全文】

阅读(1135) | 评论(0) | 转发(0)

发布时间:2016-08-20 12:24:06

lambda表达式的语法定义如下:   [capture] (parameters) mutable ->return-type {statement};参数解释:    [capture]: 捕捉列表。               捕捉列表总是出现在lambda函数的开始处。实质上,[]是lambda引出符.........【阅读全文】

阅读(906) | 评论(0) | 转发(0)

发布时间:2015-10-31 12:33:33

dynamic_cast:   通常在基类和派生类之间转换时使用const_cast:   主要针对const和volatile的转换static_cast:   一般的转换(no run-time check)通常,如果你不知道该用哪个,就用这个。   reinterpret_cast:   用于进行没有任何关联之间的转换,比如一.........【阅读全文】

阅读(1213) | 评论(0) | 转发(0)

发布时间:2015-07-02 15:04:13

<pre style="white-space:pre-wrap;font-size:14px;line-height:26px;background-color:#FFFFFF;color:#FF0102;font-weight:bold;"><h3 style="margin:0px;padding:0px;line-height:28px;">vector简介</h3><p style="margin-top:0px;margin-bottom:10px;line-height:24px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; v.........【阅读全文】

阅读(1441) | 评论(0) | 转发(0)

发布时间:2015-07-02 14:36:20

<br /><div><div class="codeheads"><p>点击(<span style="cursor:pointer;color:red;" onclick="code_hide('code534')">此处</span>)折叠或打开</p></div><div id="code534" class="codeText"><ol style="margin:0 1px 0 0px;padding-left:40px;" start="1" class="dp-css"><li><span style=.........【阅读全文】

阅读(955) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册