Would These Be Considered Magic Numbers?
问题 I've just completed writing a program for a programming class, and I want to avoid use of magic numbers, so here's my question: In the function below, would my array indexers be considered magic numbers? Code: string CalcGrade(int s1, int s2, int s3, double median) { const int SIZE = 23; const int LETTER_GRADE_BARRIERS[SIZE] = { 400, 381, 380, 361, 360, 341, 340, 321, 320, 301, 300, 281, 280, 261, 260, 241, 240, 221, 220, 201, 200, 181, 180 }; double finalGrade; string letterGrade; finalGrade