C语言编程题 求高手解答

[复制链接]
查看11 | 回复3 | 2012-4-25 19:05:35 | 显示全部楼层 |阅读模式
#include#include#includeusing namespace std;int cmp(const int &a,const int &b){
if(a>b) return 1;
else return 0;}int main(){
int i,j,sum,grad[1000],jg;
double prob;
i=0;
jg=0;
while(cin>>grad && getchar()!='\n')
{
if(grad>=60) j...
回复

使用道具 举报

千问 | 2012-4-25 19:05:35 | 显示全部楼层
要用到变量组插入的方式进行排列...
回复

使用道具 举报

千问 | 2012-4-25 19:05:35 | 显示全部楼层
#includemain(){float x,xmax,xmin;scanf("%f",&x);xmax=x;xmin=x;for(;x>=0;){if(x>xmax)xmax=x;if(x<xmin)xmin=x;scanf("%f",&x);}printf("\nxmax=%f\nxmin=%f...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行