当前位置:网站首页>*Write a program to initialize a string object with a vector < char> container*/
*Write a program to initialize a string object with a vector < char> container*/
2022-06-30 03:01:00 【qq_ fifty-eight million seven hundred and thirty-six thousand t】
int main(void)
{
vector<char> cstr; char c;
string str;
while (cin >> c)
{
cstr.push_back(c);
}
str.assign(cstr.begin(),cstr.end());
cout << str;
return 0;
}
边栏推荐
- Software testing skills, JMeter stress testing tutorial, transaction controller of logic controller (25)
- Use compose to realize the effect of selecting movie seats by panning tickets
- Comparable和Comparator的区别
- Welfare lottery | what are the highlights of open source enterprise monitoring zabbix6.0
- 2.8 【 weight of complete binary tree 】
- Add a custom button to jvxetable
- How to use redis to realize the like function
- mysqldump原理
- 2022 the action of protecting the net is imminent. Things about protecting the net
- 外汇交易平台哪个好?有监管的资金就安全吗?
猜你喜欢

HTA introductory basic tutorial | GUI interface of vbs script HTA concise tutorial, with complete course and interface beautification

怎么使用Vant实现数据分页和下拉加载

Wechat applet page Jump and parameter transfer

【微信小程序】条件渲染 列表渲染 原来这样用?

Software testing skills, JMeter stress testing tutorial, transaction controller of logic controller (25)

HTA入门基础教程 | VBS脚本的GUI界面 HTA简明教程 ,附带完整历程及界面美化

Time complexity analysis

自定义MVC的使用

Unity timeline data binding

Raki's notes on reading paper: neighborhood matching network for entity alignment
随机推荐
Lua Basics
Jvxetable sub table record loading completion event
HTA入门基础教程 | VBS脚本的GUI界面 HTA简明教程 ,附带完整历程及界面美化
New edition of diazotization process in 2022 and analysis of diazotization process
Hands on in-depth learning notes (XV) 4.1 Multilayer perceptron
Xunwei enzhipu ITop - imx6 Development Platform
Shell counts all strings before the last occurrence of a string
Raki's notes on reading paper: Leveraging type descriptions for zero shot named entity recognition and classification
自定义JvxeTable的按钮及备注下$set的用法
Wechat applet page Jump and parameter transfer
Mysqldump principle
Study diary: February 15, 2022
Comparable和Comparator的区别
C console format code
What are the three paradigms of database
SQLite use
中断操作:AbortController学习笔记
浅谈IDEA的优化和使用
2022护网行动在即,关于护网的那些事儿
The rigorous judgment of ID number is accurate to the last place in the team