#include "stdio.h"scopy (){char str2[]="form str2,to strl";return str2;}
main(){ char *t;t=scopy(); printf("%s",t);getch();}我这个为什么不行呀?
#include <stdio.h>
char * scopy (){ char *str1="form str2,to strl"; return str1;}
int main(){ char chTmp[80] ; memset(chTmp,0x00,80) ; strcpy(chTmp,scopy()) ; printf("%s\n",chTmp) ;
}