收起
字符串的比较不能是:if (b == "yes") 或 b == "no" 这样来比较,这两句比较应改为:if (strcmp(b,"yes") == 0) else if (strcmp(b,"no") == 0) 。另使用字符串比较函数strcmp() ,需包含头文件:#include <string.h>
报告相同问题?