直接上代码:
#include <iostream>
#include <string.h>
using namespace std;
void RevStr(char *str)
{
int k = 0;
int i = 0;
int j = 0;
if(str == NULL)
{
return ;
}
int len = strlen(str);
//先对整体进行反转
for(i = 0
直接上代码:
#include <iostream>
#include <string.h>
using namespace std;
void RevStr(char *str)
{
int k = 0;
int i = 0;
int j = 0;
if(str == NULL)
{
return ;
}
int len = strlen(str);
//先对整体进行反转
for(i = 0