Click on image to see enlargment
Eager to automate the dreary drudgery of grading students, a teacher began by writing a simple program to compute the average of the student's grades using a sample of simple test data. But it seems to be taking a long time. What's the problem?
bug521.cpp lint Output
--- Module: bug521.cpp (C++) _ for( int n = 0 ; n < nscores ; + + n ) bug521.cpp(9) : Warning 521: Expected void type, assignment, increment or decrement
Reference Manual Explanation
521 Expected void type, assignment, increment or decrement. -- The third expression of a for clause should either be an expression yielding the void type or be one of the privileged operators: assignment, increment, or decrement. See also message 522
If you have comments or questions about this bug, please post them to our Discussion Forum
Previous Bug - Bug #681 - August 2006