error C2001: newline in constant 这个错误怎么解决啊,谢谢啦
#include<stdio.h>intmain(){floatscore;chargrade;printf("请输入学生成绩:");scanf("%f,&score);...
#include <stdio.h> int main () {float score ; char grade ; printf("请输入学生成绩:"); scanf("%f,&score); );while(score>100||score<0) {printf("\n输入有误,请重输"); scanf("%f,&score); );} switch ((int)(score/10)) {case 10: case 9:grade='A';break; case 8:grade='B';break; case 7:grade='C';break; case 6:grade='D';break; case 5: case 4: case 3: case 2: case 1: case 0:grade
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询