Skip to content
小飞侠
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
菜单

博客

  1. 首页>
  2. 其他>
  3. vector2

vector2

  • Post author:xfxia
  • Post published:2023年10月7日
  • Post category:其他


#include<iostream>

#include<vector>

using namespace std;

int main()

{



int a[5]={1,3,5,7,9};



vector<int> v1(a,a+5);



vector<double> v2;



vector<int>::iterator it;



vector<int>::const_iterator cit;//只读



v2.push_back(3.14);



for(it=v1.begin();it!=v1.end();it++)



(*it)+=20;



for(cit=v1.begin();cit!=v1.end();cit++)



cout <<*cit <<” ccc”;


//利用只读迭代器输出元素值



cout <<endl;



return 0;

}


你可能也喜欢

tomcat线程池监控,预警

首次使用git推送本地代码

习题:利用for循环写出九九乘法口诀表

用VMware登录centos密码错误问题解决

谷歌内购接入指南

【stm32】实现按键的单击和长按功能

“Particles/Additive” shader 源码

anaconda修改默认的虚拟环境地址

TI J7架构多核处理器TDA4x及其模块BringUp简介

1.2.1计算机网络(分层结构、协议、接口、服务、ISO/OSI、TCP/IP)

经典的11道智力题

《数据分析-SmartChart02》SmartChart低代码平台-可视化开发

电子界卡组构建2019_2018–2019年构建现代Android应用程序的路线图

定时任务多机部署时的任务调度

UnityShader入门精要-透明效果

定义一个函数,将一个字符串中的所有小写字母转换为相应的大写字母,其余字符不变

Android 调用系统隐藏的类和方法

volatile

【QT】——QListWidget的使用

springboot(五、多源数据库【静态】)

目录

  • APICloud (3)
  • golang (228)
  • java (8,236)
  • linux (4,002)
  • mysql (2,800)
  • php (1,070)
  • python (5,439)
  • solidity (25)
  • uniapp (235)
  • vue (2,463)
  • 其他 (88,233)
  • 小程序 (801)

文章归档

  • 2023年十二月 (1872)
  • 2023年十一月 (477)
  • 2023年十月 (17371)
  • 2023年九月 (44974)
  • 2023年八月 (26399)
  • 2023年七月 (14793)
  • 2023年六月 (1)
  • 2023年五月 (2186)
  • 2023年四月 (3838)
  • 2023年三月 (1544)
  • 2023年二月 (3)
  • 2023年一月 (4)
  • 2022年十二月 (3)
  • 2022年十一月 (36)
  • 2022年十月 (16)
  • 2022年九月 (8)
  • 2021年九月 (1)
  • 2020年九月 (6)
  • 2020年八月 (5)

标签

Aave (1) cosmos (6) defi (255) flag (27) gitee (1) github (1) golang (234) java (8234) linux命令 (82) List (1) map (1115) mysql (3093) npm (237) tendermint (6) uuid (43) vant (64) vmware (270) 区块链 (63) 合约 (37) 小程序版本更新 (3)
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
Copyright xfxia.com 鲁ICP备19024253号-2
关闭菜单