Java programming those things 34 -- switch statement syntax Zhengzhou game college Chen yuefeng from: http://blog.csdn.net/mailbomb
5.3.2 switch statementThe Chinese meaning of the switch keyword is the meaning of switch and conversion. The switch
The early development of the time has been used in C + +, and later mainly Java. You need to use C # recently.Familiar with the next C #, found that the C # language on the basis of a lot of simplification, and reference to a lot of Java grammar
Switch is used in programming. For example, it is often used together with case in C language.Code. Its function is to control the flow of business processes.The syntax of the switch statement is as follows (switch, case, and default are keywords
View C # (2) through IL)
Switch Statement (lower)
Address: http://www.cnblogs.com/AndersLiu/archive/2008/11/06/csharp-via-il-switch-2.html
Original: Anders Liu
Abstract: The switch statement is a common jump statement in C #. Different codes can be
RELATED Links:
PHP Syntax (i): Foundations and variables
PHP Syntax (b): Data types, operators, and functions
PHP Syntax (iii): Control structure (for loop/if/switch/while)
This article I will summarize a few PHP commonly used control structure,
: This article mainly introduces PHP syntax 3: control structure For loop IfSwitchWhile. if you are interested in PHP tutorials, refer to it.
Related links:
PHP syntax(1): Basics and variables
PHP syntax(2): data types, operators, and functions
PHP
Objective
Process Control statement:
In the process of executing a program, the order of execution of each statement has a direct effect on the result of the program. That is to say, the process of the program has a direct impact on the running
Binary syntax and semantics of C ++, binary syntax Semantics
Binary syntaxC/C ++ default numbers use decimal, octal uses 0 prefix, hexadecimal uses 0x or 0X prefix, the proposal of the binary constant is rejected (reference to section 6.4.4.1 of the
1 /*Switch Statement2 format:3 switch (expression)4 {5 Case takes value 1:6 execute the statement;7 Break ;8 Case takes value 2:9 execute the statement;Ten Break ; One ..... A Default: - execute the statement; - Break ; the } - - */
Objective-c syntax (3): objective-c syntax
Anonymous objects in oc
Oc is rarely used here, because it is not suitable for the memory management of oc, but may appear in the interview test, which requires understanding. Do not write it like this in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.