switch/case
Inviato: 07 ago 2008, 12:25
Uno switch di questo tipo:
che complessità computazionale ha?
e rimane costante anche all'aumentare dei case?
Codice: Seleziona tutto
switch (word)
{
case "a":
i = 1;
break;
case "b":
i = 2;
break;
case "c":
i = 3;
break;
}
e rimane costante anche all'aumentare dei case?