帮助家庭工作请...... [英] Help with home work PLEASE......

查看:66
本文介绍了帮助家庭工作请......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

拥有以下数据...


450 - 500分

B 400 - 449分

C 350 - 399分

D 300 - 349分

F 0 - 299分

是字母a,b,c, d,f是需要输出的等级。


也必须是一个paraellel数组


我用文字写了以下内容,但是我得到的是字母等级的F.任何见解都会有所帮助


提前致谢

Have the following data...

A 450 - 500 points
B 400 - 449 points
C 350 - 399 points
D 300 - 349 points
F 0 - 299 points

were the letters a,b,c,d,f are the grades needed to be output.

Must also be a paraellel array

I wrote the following using the text, but all I get is F for the letter grade. Any insight would help

Thanks in advance

展开 | 选择 | Wrap | 行号

推荐答案

问题是这个循环

The problem is this loop

展开 | 选择 | Wrap | 行号


所以Banfa或其他任何人,你是说我需要将等级[]更改为最小值并将数组从最大值转换为最小值?


感谢

mike
So Banfa or anyone else, are you saying i need to change the grades[] to minpoints and invert the arrays from greatest value to least value?

thanks
mike


是的我认为这可能会有效,但就像我说的那样尝试但放入大量的printf语句,这样你就可以确切地知道发生了什么。
Yes I think that would probably work, but like I say try it but put in plenty of printf statements so that you can tell exactly what is going on.


这篇关于帮助家庭工作请......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆