1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | switch (print flag) ( case 1; case 3; cout << " Good Day\n"; cout << " Odds have it!\n"; break; case 2; case 4; cout << " Good Day\n"; cout << " Even have it!\n"; break; default: cout << " Good Day, I'm confused!\n"; cout << " Bye!\n"; break; )// switch |
Sunday, September 01, 2013
Write a program of Multivalued case statment in C++
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment