enum options {Yes,No}; class A{ int i; string str; options opt; }; int main{ A obj; obj.i=5; obj.str="fine"; obj.opt="Yes"; // compiler error }
Как назначить const char * opt?
const char *