题解 2850: 输出亲朋字符串

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

为什么不初始化就通不过

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){     int i;     char a[101] = {&#39;\……

c语言代码解决问题

摘要:解题思路:注意事项:注意添加终止符参考代码:#include<stdio.h>#include<string.h>int main(){ char str[101],str_friend[101]; ……

输出亲朋字符串——python

摘要:解题思路:注意事项:参考代码:L = input()for i in range(len(L)-1):    a =chr( ord(L[i])+ord(L[i+1]))    print(a,end……

单个字符拼接输出

摘要:解题思路:注意事项:不要用cin<< 因为根据题目条件,字符串中可能含有空格参考代码://#include <bits/stdc++.h>#define _CRT_SECURE_NO_WARNINGS……

2850: 输出亲朋字符串

摘要:#include<stdio.h> #include<math.h> #include<string.h> # define N 100001 int main() {     char ……

输出亲朋字符串(简短)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){     char s[100];     gets(s);     int ……

ASCII值赋值之输出亲朋字符串

摘要:```c #include #include int main() { char a[101], b[101]; //因为字符串长度最大为100,101是因为字符串最后一位是\0 ge……

输出亲朋字符串(c++)

摘要:```cpp #include using namespace std; int main(){ string s; getline(cin,s);//此函数可读取整行,包括……