报啥错啊? char *改为 const char *看看另外你不能定义两个变量都叫string啊,重定义了
char string[]; 改为:char str[];
string改一下,改啥都行,就是别用string