当前位置:网站首页>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;
}边栏推荐
- dotnet-exec 0.5.0 released
- mysql更新数组形式的json串
- (03). Net Maui actual combat basic control
- 技术分享| 融合调度中的广播功能设计
- Find the interface and add parameters to the form
- Implementation of aut, a self-developed transport layer protocol for sound network -- dev for dev column
- 第十一天 脚本与游戏AI
- How to analyze and solve the problem of easycvr kernel port error through process startup?
- [cloud native] AI cloud development platform - Introduction to AI model foundry (developers can experience AI training model for free)
- 基于海康EhomeDemo工具排查公网部署出现的视频播放异常问题
猜你喜欢

El upload Upload file (Manual upload, Automatic upload, upload progress)

UML diagrams and list collections

【论文阅读|深读】DANE:Deep Attributed Network Embedding

(Reprinted) an article will take you to understand the reproducing kernel Hilbert space (RKHS) and various spaces
![[fuzzy neural network prediction] water quality prediction based on fuzzy neural network, including Matlab source code](/img/88/038826ec6d16c8eb04d9ef2e01d47a.png)
[fuzzy neural network prediction] water quality prediction based on fuzzy neural network, including Matlab source code

SQLyog导入数据库时报错,求帮解决!

AI落地的新范式,就“藏”在下一场软件基础设施的重大升级里
![[image fusion] multi focus and multi spectral image fusion based on cross bilateral filter and weighted average with matlab code](/img/9c/2553d192c2f9b93acc6550220c447f.png)
[image fusion] multi focus and multi spectral image fusion based on cross bilateral filter and weighted average with matlab code

(03).NET MAUI实战 基础控件

El upload upload file (manual upload, automatic upload, upload progress)
随机推荐
Blue Bridge Cup: magic cube rotation [Vocational group]
《机器人SLAM导航核心技术与实战》第1季:第0章_SLAM发展综述
【笔记】2022.5.23 MySQL
[note] on May 28, 2022, data is obtained from the web page and written into the database
解决navicat连接数据库遇到的问题
工程安全和工程质量
errno和perror
I get n offers in two months. I don't have any difficult interviewers here
Day 12 advanced programming techniques
Error in conditional filter (if) syntax in sum function in SQL Server2005
(03).NET MAUI实战 基础控件
[note] Introduction to data analysis on June 7, 2022
EasyCVR部署服务器集群时,出现一台在线一台不在线是什么原因?
mysql更新数组形式的json串
Pytorch Profiler+ Tensorboard + VS Code
深入浅出掌握grpc通信框架
[Thesis reading | deep reading] role2vec:role based graph embeddings
AI落地的新范式,就“藏”在下一场软件基础设施的重大升级里
SQLyog导入数据库时报错,求帮解决!
El upload Upload file (Manual upload, Automatic upload, upload progress)