当前位置:网站首页>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;
}边栏推荐
- 【笔记】2022.5.23 MySQL
- Day 9 script and resource management
- [summary of skimming questions] database questions are summarized by knowledge points (continuous update / simple and medium questions have been completed)
- Knowledge - how to build rapport in sales with 3 simple skills
- Unity 在编辑器中输入字符串时,转义字符的输入
- 技术分享| 融合调度中的广播功能设计
- The new paradigm of AI landing is "hidden" in the next major upgrade of software infrastructure
- DO280私有仓库持久存储与章节实验
- Unity when entering a string in the editor, escape the input of characters
- Grasp grpc communication framework in simple terms
猜你喜欢

lego_ Reading and summary of loam code

(03). Net Maui actual combat basic control
![[note] on May 27, 2022, MySQL is operated through pychart](/img/34/36a3765683b2af485ca7c3e366da59.png)
[note] on May 27, 2022, MySQL is operated through pychart

The school training needs to make a registration page. It needs to open the database and save the contents entered on the registration page into the database

Day 12 advanced programming techniques

Sql语句遇到的错误,求解

如何利用FME 创建自己的功能软件

Analysis of similarities and differences of various merged features (Union, merge, append, resolve) in ArcGIS

DO280私有仓库持久存储与章节实验

An error occurs when sqlyog imports the database. Please help solve it!
随机推荐
A minimalist way to integrate databinding into activity/fragment
Linear interpolation of spectral response function
工程安全和工程质量
01 backpack, dynamic planning
SQL append field
你清楚AI、数据库与计算机体系
EasyCVR部署服务器集群时,出现一台在线一台不在线是什么原因?
关于智能视觉组上的机械臂
Robot slam navigation core technology and practice Season 1: Chapter 0_ Slam development overview
AI落地的新范式,就“藏”在下一场软件基础设施的重大升级里
[punch in - Blue Bridge Cup] day 1 --% 7F format output
[punch in - Blue Bridge Cup] day 4--------- split ('') cannot be used. There is a space after the last number of test cases. Split ()
如何通过进程启动来分析和解决EasyCVR内核端口报错问题?
SQL追加字段
[note] on May 27, 2022, MySQL is operated through pychart
第九天 脚本與資源管理
After the win10 system uses the browser to download, the content is moved or deleted without reason
基于海康EhomeDemo工具排查公网部署出现的视频播放异常问题
《机器人SLAM导航核心技术与实战》第1季:第0章_SLAM发展综述
SQLyog导入数据库时报错,求帮解决!