0
点赞
收藏
分享

微信扫一扫

s.insert( size_t pos,string s1 ); // 将 s1 插在 s[pos] 之前.

工程与房产肖律师 2022-03-27 阅读 75
知识图谱
//
s.insert( size_t pos,string s1 ); // 将 s1 插在 s[pos] 之前.

// eg.
#include<bits/stdc++.h>
using namespace std;

int main()
{
	string s,s1;
	
	while( getline( cin,s ) )
	{
		getline( cin,s1 );
		s.insert( 1,s1 );	
		cout<<s<<endl;
	}
	return 0;
} 
// abc
// 123
// a123bc
举报

相关推荐

0 条评论