当前位置:网站首页>42.【vector简单列题】
42.【vector简单列题】
2022-07-30 06:29:00 【李在奋斗……】

#include <vector>
#include <iostream>
using namespace std;
int main()
{
vector<int> str_a(13);
for (int i = 0; i < 13; i++)
{
cout << "请输入第" << i + 1 << "个数为:" << endl;
cin >> str_a[i];
}
for (int j = 0; j < 13; j++)
{
if (str_a[j] == 3)
{
str_a.erase(str_a.begin() + j, str_a.begin() + j);
}
else
{
cout << str_a[j] << " ";
}
}
return 0;
}

边栏推荐
- golang: Gorm配置Mysql多数据源
- go : go-redis set操作
- ETL为什么经常变成ELT甚至LET?
- Hex conversion...
- golang: Gorm configures Mysql multiple data sources
- Interview with Ant: How do these technology pioneers do the bottom-level development well?| Excellent technical team interview
- go : go-redis set operations
- From catching up to surpassing, domestic software shows its talents
- interface
- RT-Thread-GD32的SPI在切换同一总线不同挂载设备时会出现切换后乱发送数据的问题
猜你喜欢

2020 ACM | MoFlow: An Invertible Flow Model for Generating Molecular Graphs

Limit injection record of mysql injection in No. 5 dark area shooting range

云服务器零基础部署网站(保姆级教程)

Go uses the mencached cache

linux安装mysql8参考指引

2020 ACM | MoFlow: An Invertible Flow Model for Generating Molecular Graphs

潜心打磨,主动求变——这群技术排头兵,如何做好底层开发这件事?

WinForm(一):开始一个WinForm程序

Burpsuite几种爆破方式

Electron之初出茅庐——搭建环境并运行第一个程序
随机推荐
k8s 部署mysql8(PV和PVC 版本)
Basic usage of tree arrays
this与super
go : delete database data using grom
Go: go - redis based operation
【COCI 2020/2021 Round #2 D】Magneti(DP)
你好,我的新名字叫 “铜锁 / Tongsuo”
interface
保存在 redis中的token 如何续期?
谷粒商城--环境部署(2022/7/28最新)
Go 结合Gin导出Mysql数据到Excel表格
常用的配置
【雷达目标检测】恒定阈值法和恒虚警(CFAR)法及代码实现
General Lei's personal blog to see
BGP:边界网关路由协议 无类别的路径矢量EGP协议
SOFA Weekly|Meetup 广州站、本周 QA、本周 Contributor
Goto statements
获取controller中所有接口路径和名称
go : 使用gorm创建数据库记录
MYSQL 主从恢复锁表后, 处理SQL 线程锁解决.