当前位置:网站首页>Splicing strings with custom functions
Splicing strings with custom functions
2022-06-30 04:08:00 【Elvin Yuwen】
adopt for Loop through the string , Add the latter string to the space of the previous string , Last string before final output , Realize string splicing
#include<bits/stdc++.h>
#include<string.h>
using namespace std;
int main( )
{
char m[20],n[20];
int a,b,c;
scanf("%s",&m);
scanf("%s",&n);
a = strlen(m);
b = strlen(n);
for(int i=0;i<b;i++)
{
m[a+i]=n[i];
}
for(int j=0;j<(a+b);j++)
{
printf("%c",m[j]);
}
return 0;
}
边栏推荐
- 解决navicat连接数据库遇到的问题
- 接口测试--如何分析一个接口?
- Day 12 advanced programming techniques
- Simple theoretical derivation of SVM (notes)
- About manipulator on Intelligent Vision Group
- Linear interpolation of spectral response function
- MySQL updates JSON string in array form
- Postman learning sharing
- Pig-Latin (UVA492)
- Error encountered in SQL statement, solve
猜你喜欢
Day 10 data saving and loading
Thingsboard tutorial (II and III): calculating the temperature difference between two devices in a regular chain
Interface test tool postman
[note] May 23, 2022 MySQL
《机器人SLAM导航核心技术与实战》第1季:第0章_SLAM发展综述
Jour 9 Gestion des scripts et des ressources
Grasp grpc communication framework in simple terms
DBT product initial experience
[cloud native] AI cloud development platform - Introduction to AI model foundry (developers can experience AI training model for free)
[punch in - Blue Bridge Cup] day 3 --- slice in reverse order list[: -1]
随机推荐
将DataBinding整合到Activity/Fragment的一种极简方式
Do280 private warehouse persistent storage and chapter experiment
Unity 在编辑器中输入字符串时,转义字符的输入
SQL server2005中SUM函数中条件筛选(IF)语法报错
学校实训要做一个注册页面,要打开数据库把注册页面输入的内容存进数据库但是
. Net 7 JWT configuration is too convenient!
Find the interface and add parameters to the form
Unity 在編輯器中輸入字符串時,轉義字符的輸入
el-upload上传文件(手动上传,自动上传,上传进度)
El upload Upload file (Manual upload, Automatic upload, upload progress)
技术分享| 融合调度中的广播功能设计
Troubleshoot abnormal video playback problems in public network deployment based on Haikang ehomedemo tool
Magical Union
[operation] MySQL query operation 2 on May 25, 2022
The jupyter notebook kernel hangs up frequently and needs to be restarted
matplotlib. pyplot. Hist parameter introduction
Cloud native -- websocket of Web real-time communication technology
errno和perror
声网自研传输层协议 AUT 的落地实践丨Dev for Dev 专栏
Ananagrams(UVA156)