char *a,*s;a="i love you";s=*a;这样不对。s和a变成了同一指针。char s;s=*a应该是通不过编译的。试试 char *a,*s;a="i love you";strcpy(s, a);