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……
2850: 输出亲朋字符串
摘要:```cpp
#include
using namespace std;
int main()
{
string s;
getline(cin,s);
char ……
strlen函数在visual stdio2022里是算上\n的在他这编译器上则不算害我搞了好久
摘要:解题思路:注意事项:参考代码:在这里的编译器#include<stdio.h>#include<string.h>void main(){ char a[101]={0}; char d[……
输出亲朋字符串(c++)
摘要:```cpp
#include
using namespace std;
int main(){
string s;
getline(cin,s);//此函数可读取整行,包括……
编写题解 2850: 输出亲朋字符串
摘要:解题思路:设计两个移动指针count1,count2注意事项:参考代码:str=input()
ls=[] #初始化空列表
count1=0 #设计两个相邻指针并初始化
count2=1
wh……