auto keyword demo
来源:互联网 发布:搞怪的淘宝收件人名字 编辑:程序博客网 时间:2024/06/07 00:30
#include <iostream>#include <vector>using namespace std;int main(){ int v1 = 10; int v2 = 20; auto v = v1 + v2; cout << v << endl; vector<int> ivec { 1, 2, 3, 4 }; for (auto elem : ivec) cout << elem << " "; cout << endl; for (auto it = ivec.begin(); it != ivec.end(); ++it) cout << *it << " "; cout << endl; return 0;}
0 0
- auto keyword demo
- decltype keyword demo
- synchronized keyword DEMO
- margin之keyword auto(一)
- Visual C++ 2010 0x 特性(2):the auto keyword
- keyword
- 通过若干个 Demo 进行讲解 Auto Layout
- "auto"
- auto
- auto
- auto
- auto
- auto,
- auto
- AUTO
- auto
- unsigned keyword
- KeyWord __declspec
- Rotate Array
- 项目一 用“类”解决旱冰场造价的问题
- LeetCode--Count and Say
- 把书读薄之《面向对象葵花宝典》阅读笔记-面向对象基础
- 微博系统,集成新浪开发,有需要的朋友下载
- auto keyword demo
- WCF 入门教程二
- Valentine's Day Round 1001 Ferries Wheel
- 康托展开
- 第二学期 第一周项目一 初识对象阅读材料回答问题
- 交换两个变量的值,不使用第三个变量的四种方法
- 为什么一旦在任务完成前对人说出计划,就难继续顺利执行?
- Valentine's Day Round 1002 Misaki's Kiss again
- 安卓 关于Intent四个属性的总结