int a,b;char ch;scanf("%d%c%d",&a,&ch,&b);
输入56+75。能正确输到对应的地方吗。%d是读到非数字停还是读到空格停?%c呢。
供参考:scanf函数详解https://www.cnblogs.com/yyxayz/p/4032709.html