当前位置:网站首页>*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;
}
边栏推荐
- SQLite使用
- shell统计某个字符串最后一次出现的位置之前的所有字符串
- How to set password complexity and timeout exit function in Oracle
- What is the difference between a layer 3 switch and a layer 2 switch
- Global and Chinese market of ERP software for garment and textile industries 2022-2028: Research Report on technology, participants, trends, market size and share
- Heavy attack -- ue5's open source digital twin solution
- List of development tools
- 重磅来袭--UE5的开源数字孪生解决方案
- Visual HTA form designer htamaker interface introduction and usage, Download | HTA VBS visual script writing
- 快速排序、聚簇索引、尋找數據中第k大的值
猜你喜欢

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

Recursion frog jumping steps problem

GTK interface programming (I): Environment Construction

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

Three solutions to forced hibernation of corporate computers

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

LeetCode 3. Longest substring without duplicate characters

Intel hex, Motorola S-Record format detailed analysis

CMake教程系列-02-使用cmake代码生成二进制

什么是外链和内链?
随机推荐
DC/DC变换器轻载时三种工作模式的原理及优缺点
Cmake tutorial series-01-minimum configuration example
GTK interface programming (I): Environment Construction
SQLite使用
2.8 【 weight of complete binary tree 】
Formal and actual parameters, value passing and address passing
NLP text summary: data set introduction and preprocessing [New York Times annotated corpus]
炒现货黄金的交易平台如何保障资金安全?
Cmake tutorial series-03-dependency management
Global and Chinese market of ERP software for garment and textile industries 2022-2028: Research Report on technology, participants, trends, market size and share
Azure 开发者新闻快讯丨开发者6月大事记一览
【微信小程序】条件渲染 列表渲染 原来这样用?
外汇交易平台哪个好?有监管的资金就安全吗?
2022 tool fitter (Advanced) and tool fitter (Advanced) certificate examination
2022 underground coal mine electrical test and underground coal mine electrical simulation test
CMake教程系列-03-依赖管理
C console format code
LeetCode 3. 无重复字符的最长子串
New edition of diazotization process in 2022 and analysis of diazotization process
Mysql 带上库名称跨库操作可能出现的问题