STL vector
来源:互联网 发布:动画生成软件 编辑:程序博客网 时间:2024/06/04 01:31
<img src="http://img.blog.csdn.net/20160409141926978" alt="" />
#include<iostream>#include<cstdio>#include<algorithm>#include<vector>using namespace std;//using std::vector;vector<int>a(1);int main(){int n,x,m;cin>>n;for(int i=1;i<=n;i++){cin>>x;a.push_back(x);}cout<<a.size();cin>>m;cout<<a.at(m)<<endl;cout<<"first"<<a.front()<<endl;cout<<"last"<<a.back(); }
1 0
- STL vector
- STL vector
- stl vector
- STL vector
- STL vector
- stl-vector
- STL--vector
- STL Vector
- stl vector
- STL:vector
- STL---vector
- STL-vector
- Stl--Vector
- Stl--Vector
- STL Vector
- STL vector
- stl vector
- stl-vector
- JAVA-泛型总结
- css 的几个选择器
- FMDB(一)— 简介
- 《统计学习方法》笔记(8):AdaBoost算法
- 设计模式-单态模式
- STL vector
- 【POJ 3306】【素数筛选】Dirichlet's Theorem on Arithmetic Progressions
- vim使用
- commons-beanutils使用介绍
- 94. Binary Tree Inorder Traversal
- iOS开发UICollectionView瀑布流效果
- Linux ls -l命令的实现
- 一种记忆用户使用习惯的方法及系统
- 【HDU 2955】【背包问题】Robberies