标题:请大家看看我这段C++代码有什么错误
只看楼主
wwuusong
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2007-3-16
 问题点数:0 回复次数:0 
请大家看看我这段C++代码有什么错误

请大家看看我这段代码有什么错误
错在哪里
怎么改正
谢谢了
……

#include"stdio.h"
main()
{
int score;
char grade;
printf("\nplease input a student score:");
scanf("%f",&score);
if(score>100||score<0)
printf("\ninput error!");
else
{if(score>=90)
grade='A';
else
{if(score>=70)
grade='B';
else
{if(score>=60)
grade='C';
else grade='E';
}
}
}
printf("\nthe student grade:%c",grade);
}

搜索更多相关主题的帖子: 代码 
2007-03-22 20:05



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-125981-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.726117 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved