这个题不考虑空格——第一个测试点不通过的原因
摘要:解题思路:之前用getchar()获得字符(\n结束),统计长度后正反各输出一次。然后第一个测试点死活不通过。红温过后使用scanf("%s",&str)即可。注意事项:呕……
C语言训练-字符串正反连接(c)
摘要:#include <stdio.h>#include <string.h>int main(){ char a[120]; int x,j=0,i; gets(a); x=st……
旧物有情 # 字符串正反连接 超简单思路
摘要:```
#include
#include
#include
using namespace std;
int n,jin,yin,tong;
int main(){
ch……
C语言训练-字符串正反连接
摘要:解题思路:string reverse注意事项:参考代码:#include<iostream>
#include<cstdio>
#include<string>
#include<algori……
多种方法解决,不使用string头文件的解法也有(c语言代码)
摘要:**1)不使用数组,这种做法其实不符合题意,因为你没有连接,你的原数组没有变化**
```c
#include
#include
int main(){
char s[50];……
--------------------字符串拼接------------------------------字符串倒序----------
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
#include<string.h>
void strcat_custom(char* dest, const char* ……