the following are my utility.h
which i got from my professor
there is error 2332 on line 5 & 6
after doing a bit of searching
i do understand what does the error means
but i just not quite sure how to fix it!
can someone explain it to me??
or what should i do to fix the error

// utility.h

#ifndef UTILITY_H
#define UTILITY_H

enum bool {false, true};
enum Error_code {success, overflow, underflow} ;

#endif

bool, true and false are c++ keywords. Just comment out that enum and it should work ok.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.