head=addbook(head);printf("添加成功!\n");printf("是否繼續(xù)添加新圖書(y/n)\n");scanf("%c",&j[0]);if(j[0]=='y')k=1;while(k!=0){head=addbook(head);printf("添加成功!\n");printf("是否繼續(xù)添加新圖書(y/n)\n");scanf("%c",&j[i]);i++;if(j[i]=='n')k=0;}int i=1;
為什么點(diǎn)了一次添加圖書Y之后,不管點(diǎn)Y還是N都跳不出while函數(shù)啊,求解?
慕標(biāo)5832272
2022-12-20 19:15:06