摘要: scanf("%d%c",&a,&b); 输入时,必须两数相连,没有空格。否则b=' '或b='\n',造成bug。 改成下面就可以。 scanf("%d %c",&a,&b); 阅读全文
posted @ 2023-09-21 17:51 安然春夏 阅读(9) 评论(0) 推荐(0)