#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-05-29 17:12:24 发布
#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