...
Code Block | ||
---|---|---|
| ||
if (age >= 18) { takevote(personID); /* Take action */ } ... if (age <= 18) { checkSchoolEnrollment(personID);/* Take a different action */ } |
Compliant Solution
Code Block | ||
---|---|---|
| ||
enum { ADULT_AGE=18 }; ... if (age >= ADULT_AGE) { takevote(personID); } ... if (age <= ADULT_AGE) { checkSchoolEnrollment(personID); } |
...