当前位置:网站首页>*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;
}
边栏推荐
- Cmake tutorial series -02- generating binaries using cmake code
- Servlet interview questions
- Azure 开发者新闻快讯丨开发者6月大事记一览
- Redis+AOP怎么自定义注解实现限流
- Software testing skills, JMeter stress testing tutorial, transaction controller of logic controller (25)
- 多卡服务器使用
- Functions in C language
- CMake教程系列-02-使用cmake代碼生成二進制
- 2022 the action of protecting the net is imminent. Things about protecting the net
- Cmake tutorial series -04- compiling related functions
猜你喜欢

简单自定义MVC优化

可视化HTA窗体设计器-HtaMaker 界面介绍及使用方法,下载 | HTA VBS可视化脚本编写

JMeter obtains cookies across thread groups or JMeter thread groups share cookies

福利抽奖 | 开源企业级监控Zabbix6.0都有哪些亮点

简单自定义mvc

Federal learning: dividing non IID samples by Dirichlet distribution

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

怎么利用Redis实现点赞功能

浅谈IDEA的优化和使用

三层交换机和二层交换机区别是什么
随机推荐
怎么利用Redis实现点赞功能
Multi card server usage
IDEA 远程调试 Remote JVM Debug
2. successfully solved bug:exception when publishing [Failed to connect and initialize SSH connection...
Cmake tutorial series-01-minimum configuration example
&nbsp; Difference from spaces
LeetCode 3. Longest substring without duplicate characters
What is the metauniverse: where are we, where are we going
List of development tools
怎么使用Vant实现数据分页和下拉加载
Use of Arthas
Linear algebra Chapter 4 Summary of knowledge points of linear equations (Jeff's self perception)
How to set password complexity and timeout exit function in Oracle
c#控制台格式化代码
Idea remote debugging remote JVM debug
Raki's notes on reading paper: Leveraging type descriptions for zero shot named entity recognition and classification
Mysqldump principle
简单自定义MVC优化
oracle怎么设置密码复杂度及超时退出的功能
High paid programmers & interview questions series 63: talk about the differences between sleep (), yield (), join (), and wait ()