ho due domande - (I)uso di "else if" in C++
code-fragment-1
if(<condition-statement>){
}
else if(<condition-statement-2>){
//statements-1
}
//statements-2
codice-frammento-2
if(<condition-statement>){
}
else{
if(<condition-statement-2>){
//statements-1
}
//statements-2
}
Sono questi due frammenti di codice stesso?
(II) quando sono usati ifs (in C++)?
un'istruzione switch deve sempre preferire a più rami "else if" o mi viene un'idea sbagliata – clockw0rk