Error in Code
Error in Code page 216.
First code paragraph (on top), line 3 reads:
Console::WriteLine("Students with Grade {0}:", gradeLetter+j);
Should be
Console::WriteLine("Students with Grade {0}:", gradeLetter++);
Explanation:
Because of adding data type Int32 to a wchar_t, it is converted into number when padded to the string object. So grades appear as NUMBERS instead of letters. I posted this one year ago but surprised not see it listed yet!
Nad
|