Jump to content

Enum e Switch


nunolevezinho

Recommended Posts

// declaração da enumeração
enum RespostaMenu{sair=4, ver=1, gerir=2, stocks=3};

// o tipo de dados está errado, não existe nenhum tipo de dados "RespostaMenu" !!!
RespostaMenu answer;

// maneira correcta de declarar uma variável do tipo enumeração
enum RespostaMenu answer;
  • Vote 1
IRC : sim, é algo que ainda existe >> #p@p
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.