谁能帮我解决?
#include<stdio.h>
{ int score;
char grade;
printf("please input a score:\n");
scanf("%d",&score);
grade=score>=90?'A':(score>=60?'B':'C');
printf("%d belongs to %c",score,grade);
getch();
}
谢了
#include<stdio.h>
{ int score;
char grade;
printf("please input a score:\n");
scanf("%d",&score);
grade=score>=90?'A':(score>=60?'B':'C');
printf("%d belongs to %c",score,grade);
getch();
}
谢了
解决方案 »
- 对ComBox控件取值出错的求助,有分哈
- ProgressDestroy();函数,错误提示,没有定义。在线等
- 如何在DLL中给工程,EXE传递一个全路径?
- “星星”现在显示为“生生”。如何做,谢谢大侠。
- 如何使用向量管理接口
- MFC 是否有现成的类来支持 NNTP 协议?若没有,怎么用才能支持?
- 关于菜单命令的一个问题,急!(我是新手,只有30分,大家帮忙)
- 通过ODBC连接的数据库AddNew()失败!WHY?
- 谁参加过联想的笔试?
- 一个希伯来文的字符占几个字节
- 如何改变系统处理WM_MOUSEMOVE的时间
- 如何将一个VB写的DLL包成VC的DLL。该VBdll调用了其他应用程序的两个Olb文件。
{ int score;
char grade;
printf("please input a score:\n");
scanf("%d",&score);
grade=score>=90?'A':(score>=60?'B':'C');
printf("%d belongs to %c\n",score,grade);
getchar();//修改
}