char *name想对这个数组进行输入使用scanf函数
不能直接用,得先分配空间才能用,比如用malloc一下,或者让他指向一个数组空间,char b[100], char *name = b;这样才可以scanf("%s",name)