回复 6楼 hkhk366
这样啊。办法肯定有:1、楼主自创一个编译器,专门完成楼主的需求。
2、我可以完成,但不知道楼主看的懂不,代码如下,自己思索:
程序代码:#include <iostream>
#include <cstring>
#include <stdio.h>
#include <malloc.h>
using namespace std;
void reverse3(char *s)
{
int len = strlen(s);
int i,*p1;
char *p = (char*)malloc(len);
strcpy(p, s);
p1=(int*)&s;
i=0;
while(p1[++i]!=*p1&&i<1000);
p[1] = 's';
s = p;
if(i<1000)p1[i]=(int)s;
cout << s << endl;
}
int main() {
char *s = new char[4];
s = "abc";
reverse3(s);
cout << s << endl;
return 0;
}
能编个毛线衣吗?



