In a C++ book I'm reading it has an example where an enumeration is used to return an error report of SUCCESS or ERROR in a function. Can anyone explain to me what an enumerator is?
I believe that an enumeration is basically a user defined type, where it can have one of the given values. By creating an object of that type, its variables can take on one of the values in the enumeration's list of values.
In that particular case returns of true and false would be just as effective though.