The following prints out "One": #includeReference: "C++ Gotchas" by Stephen C. Dewhurst. Addison-Wesley, 2002., p. 18.int main() { switch (1) { if (0) { case 1: cout << "One" << endl; } } }
Tuesday, March 16, 2010
Switch Statements
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment