creates flags inside c++ class
#include <iostream>
// creates flag inside a class
class Typer
{
public:
enum flag
{
foo,
doo
};
private:
int _num;
public:
Typer(int i): _num(i)
{}
~Typer(){}
};
int main() {
Typer::flag f = Typer::doo;
std::cout << "Hello World!\n";
std::cout << f << std::endl;
}