工程与房产肖律师

关注

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

工程与房产肖律师

关注

阅读 76

2022-03-27

//
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

相关推荐

黎轩的闲暇时光

s1 Linux 硬件基础

黎轩的闲暇时光 155 0 0

残北

Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally

残北 184 0 0

墨春

SELECT s1.article, s1.dealer, s1.price FROM shop s1 LEFT JOIN shop s2 ON s1.price < s2.price WHERE s

墨春 52 0 0

天蓝Sea

159.234 OBJECT-ORIENTED PROGRAMMING S1, 2022

天蓝Sea 58 0 0

陆佃

年轻代回收图示,对象Eden,S1,S2间转换

陆佃 26 0 0

钟罗敏

给定两个字符串s1,s2,写函数输出s1和s2的最长公共子串

钟罗敏 34 0 0

_karen

char* s1 = new char[len + 1];这个星号是干啥的

_karen 36 0 0

扒皮狼

string —— s.size() == s.length() ?

扒皮狼 53 0 0

紫荆峰

幻想大陆的守护者:S1与她的治愈之光

紫荆峰 5 0 0

cnlinkchina

海信 100E7N 和海信星光 S1选哪个

cnlinkchina 28 0 0

精彩评论(0)

0 0 举报