Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Enable the decimal key in Calculator widget' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Enable the decimal key in Calculator widget
Authored by: Akira on Jun 22, '05 11:54:26AM

case 44:
case 46:
key = "decimal";
break;
doesn't this create a statement with a nested "case 46:"-line?
(if case is not 44, but is 46, it will not assign "decimal" to key)

[ Reply to This | # ]
10.4: Enable the decimal key in Calculator widget
Authored by: 3mors on Jun 22, '05 12:08:42PM

no, as u can see in that switch, for example, equal is assigned to multiple keys in the same way.

---
-------
3mors



[ Reply to This | # ]
10.4: Enable the decimal key in Calculator widget
Authored by: fracai on Jun 22, '05 12:10:55PM

because there is no break after the first case statement this will match both 44 and 46 (ie. decimal will be used in case 44 and in case 46)

---
i am jack's amusing sig file



[ Reply to This | # ]