Mapa mental
COMANDOS DE DECISÕES C++
Conteúdo do mapa
COMANDOS DE DECISÕES C++
if else
- excludente
- if(){ }else if(){ }else if(){ }else{ }
- includente
- if(){ }if(){ }if(){ }
- excludente
if simplificado
- operador ternário
- (Expressão) ? valor1(true) : valor2(false)
- operador ternário
switch case
- switch(expressão) { case 1: comandos; break; case 2:comandos;break; default:comandos;}
- usado para seleção de opções