摘要:
1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 int main() 5 { 6 char *src="hello,world"; 7 char *dest,*d,*p; 8 int len,i; 9 len=st 阅读全文
摘要:
1 void swap(char *p,char *q) 2 { 3 char tmp[100]; 4 strcpy(tmp,p); 5 strcpy(p,q); 6 strcpy(q,tmp); 7 } 或者 1 void swap(char *p,char *q) 2 { 3 char tmp; 阅读全文