近几日刚开始学习,抄书上的程序运行,这啥意思啊?哪里错了?怎么改呢?
scanf_s输入%c、%s这些格式的数据需要指定长度
scanf_s("%d%c%d", &data1, &op, 1, &data2);
scanf_s换成scanf试试