#include<iostream>
#include<cstdlib>
#include<cstring>
using namespace std;
void reverse(char *s,int n){
int l=0;int r=n-1;
while(l<r){
char temp=s
C++ 字符串的倒置(reverse)
最新推荐文章于 2024-07-11 10:23:05 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
#include<iostream>
#include<cstdlib>
#include<cstring>
using namespace std;
void reverse(char *s,int n){
int l=0;int r=n-1;
while(l<r){
char temp=s