当前位置:网站首页>*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;
}
边栏推荐
- 2. successfully solved bug:exception when publishing [Failed to connect and initialize SSH connection...
- CMake教程系列-03-依赖管理
- Intel-Hex , Motorola S-Record 格式详细解析
- CMake教程系列-05-选项及变量
- prompt learning 一个空格引发的血案
- What about punctuation in the first column of unity text
- 福利抽奖 | 开源企业级监控Zabbix6.0都有哪些亮点
- CMake教程系列-02-使用cmake代碼生成二進制
- HTA introductory basic tutorial | GUI interface of vbs script HTA concise tutorial, with complete course and interface beautification
- Global and Chinese market of ERP software for garment and textile industries 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

GTK interface programming (I): Environment Construction

Recursion frog jumping steps problem
![[live broadcast notes 0629] Concurrent Programming II: lock](/img/5c/42f5c9a9969b4d2bb950a7caac5555.png)
[live broadcast notes 0629] Concurrent Programming II: lock

公司电脑强制休眠的3种解决方案

How to set password complexity and timeout exit function in Oracle

在php中字符串的概念是什么

Wechat applet page Jump and parameter transfer

Cross domain, CORS, jsonp

发现mariadb数据库时间晚了12个小时

Intel-Hex , Motorola S-Record 格式详细解析
随机推荐
Tri rapide, index groupé, recherche de la plus grande valeur K dans les données
CMake教程系列-02-使用cmake代碼生成二進制
可视化HTA窗体设计器-HtaMaker 界面介绍及使用方法,下载 | HTA VBS可视化脚本编写
002 color classification
Intel-Hex , Motorola S-Record 格式详细解析
发现mariadb数据库时间晚了12个小时
GTK interface programming (II): key components
Distributed file storage system fastdfs hands on how to do it
Servlet interview questions
Uniapp address translation latitude and longitude
Prompt learning a blood case caused by a space
【直播笔记0629】 并发编程二:锁
uniapp 地址转换经纬度
Use of Arthas
How to prevent duplicate submission under concurrent requests
shell统计某个字符串最后一次出现的位置之前的所有字符串
JvxeTable子表记录加载完毕事件
2022 tool fitter (Advanced) and tool fitter (Advanced) certificate examination
2022 the action of protecting the net is imminent. Things about protecting the net
What about punctuation in the first column of unity text