asdasdasdasd

asdasdasdasasd
Last edited on
A+ and A- are two chars so you can't store it in a single char. Maybe you want to use a string instead.
can u help me please? i have no idea what to do .
Last edited on
Check this:
http://www.cplusplus.com/reference/string/string/operator=/

It contains a small example program that should help you on your way.
OP:

i want to change A to A+,B to A-, C to A.etc but i cant , please take a look and help
1
2
3
4
5
6
7
8
9
10
11
12
13
void grading(double avg, char& grd)
{
if (avg>90)
grd = 'A';
else if (avg>=80)
grd = 'B';
else if (avg>=70)
grd = 'C';
else if (avg>=60)
grd = 'D';
else
grd = 'F';
}
Topic archived. No new replies allowed.