I have written the following from a book:
--------Start of code
#include <iostream>
using namespace std;
main () {
enum Day{SUN, MON, TUE, WED, THU, FRI, SAT} ;
double high[SAT+1] = {87.2, 82.0, 67.2, 72.2, 75.5, 79.2, 81.5};
for (Day d=SUN ; d<=SAT;d++) //line 6
cout <<"\nDay " <<d <<" high=" <<high[d];
cout <<endl;
system ("pause");
return 0;
}
--------End of code
And I keep getting the error:
6 no 'operator++(int)' declared for postfix '++'
I guess in devc++ I got to declared the "++" operator but I don't know how to.
Any help would be greatly appreciated