想问一下是char s;scanf("%s",s)这种格式吗?不用带&?
这里 char s; s 是单个字符,scanf("%c",&s); 必须带 ‘&’。如果定义 char s[8]; scanf("%s",s); ,这里s 前面不需要 ‘&’,这里s 是字符串。