Hello, I was wondering if the enum keyword is affected by class/struct access specifiers (public, protected, and private)?
Also, I need to know if its possible to "nest" one enum type inside another enum type.
Hello, I was wondering if the enum keyword is affected by class/struct access specifiers (public, protected, and private)?
Also, I need to know if its possible to "nest" one enum type inside another enum type.
Code://try //{ if (a) do { f( b); } while(1); else do { f(!b); } while(1); //}
I think he's referring to nesting enums in a manner similar to how you can nest classes in C#.As far as nesting, I'm not sure exactly what you mean.
Enums are not nestable in C++.I need to know if its possible to "nest" one enum type inside another enum type.