正在加载图片...
Programming in C++ >In this example, letter is the switch expression >The statement means %If letter is X, execute Statement1 and continue with Statements If letter is" L' or 'M, execute Statement2 and continue with Statements %If letter isS, execute Statement and continue with Statements %If letter is none of the characters mentioned execute Statement and continue with Statements >The Break statement causes an immediate exit from the Switch statement7 ➢In this example, letter is the switch expression. ➢The statement means ❖If letter is ‘X’,execute Statement1 and continue with Statement5. ❖If letter is ‘L’ or ‘M’, execute Statement2 and continue with Statement5. ❖If letter is ‘S’, execute Statement3 and continue with Statement5. ❖If letter is none of the characters mentioned, execute Statement4 and continue with Statement5. ➢The Break statement causes an immediate exit from the Switch statement
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有