i am working on a project where i am using SysRc values as return values from some function like SUCCESS and FAILURE ond sum enums .
Now i want to know how to get them print?
i am working on a project where i am using SysRc values as return
Share
Building on top of Neil’s post:
A switch statement is usually the way to go with enum values in C++. You could save some writing work by using
#define-macros, but I personally avoid them.gcc will warn you about unhandled case values.