当前位置:网站首页>1133: output family and friends string
1133: output family and friends string
2022-06-30 14:49:00 【I would, I think】
#include<string.h>
#include<iostream>
using namespace std;
int main()
{
char a[101];
char b[101];
cin.getline(a,101);
for(int i=0;i<strlen(a)-1;i++)
{
b[i]=a[i]+a[i+1];
cout<<b[i];
}
b[strlen(a)]=a[0]+a[strlen(a)-1];
cout<<b[strlen(a)];
return 0;
}边栏推荐
- Solve the problem that codeblocks20.03 on win11 cannot run for the first time
- [buuctf] [actf2020 freshman competition]exec1
- Sum of squares of two pointers
- NoViableAltException([email protected][])
- [untitled]
- [buuctf] [actf2020 freshman competition]include
- Vue returns to the previous page without refreshing the page / Vue caches the page
- Use PHP to delete the specified text content in the file
- day02
- MV3 04_ Introducing Manifest V3
猜你喜欢

How does hbuilder display in columns?

CCF sequence segmentation (Full Score code + problem solving idea) 201509 -1
![[buuctf] [actf2020 freshman competition]include](/img/42/50439290177fdea5f431e315cac1a1.jpg)
[buuctf] [actf2020 freshman competition]include

1 figure to explain the difference and connection between nodejs and JS

Att & CK red team evaluation field (I)

ThinkPHP v3.2 comment annotation injection write shell

CCF drawing (full mark code + problem solving ideas + skill summary) February 2, 2014

Summary of use of laravel DCAT admin

day02

How to use Alibaba Vector Icon
随机推荐
Introduction to the construction and development of composer private warehouse
Judgment of deep learning experiment results
An error is reported when installing dataspherestudio doc: invalid default value for 'update_ time‘
XSS challenge (6-10) more detailed answers
Summary of C language interview questions
Repair of incorrect deletion of win10 boot entry
Data recovery software easyrecovery15 Download
【BUUCTF】 EasySql
How to use Alibaba Vector Icon
文本匹配——【NAACL 2021】AugSBERT
Detailed explanation of settimeout() and setinterval()
[untitled]
PS tip: the video frame to Layer command cannot be completed because dynamiclink is not available
CCF numerical sorting (Full Score code + problem solving ideas + skill summary) 201503-2
The JSON data returned from the control layer to JS has a "\" translator. How to remove it
Finding the root of an integer by dichotomy
左旋梯形螺纹的编程
2021 geek challenge Web
CCF call auction (full mark code + problem solving ideas + skill summary) 201412 - 3
Invalid argument during startup: Failed to open the . conf file: redis-window