<< C ++ Primer >> Chapter 5 Statement

Glossary

Chapter 5 Statement

Block (block): a sequence of 0 or more statements is enclosed within the braces. Block is a statement, so long as it is able to use the statement where you can use the block.
  
break statement (break statement): the termination of his recent physical loop or switch statement. Transfers control to the first statement after the loop or switch.
  
case label (case label): In a switch statement followed by a constant expression after the case keyword (see Section 2.4.4, page 58). In the same two switch statement in any case label value can not be the same.
  
catch clause (catch clause): consists of three parts: catch keywords in brackets exception declarations and a block. catch clause exception handling code assignment exception declarations defined.
  
Compound statement (compound statement): and the block are synonymous.
  
continue statement (continue statement): terminates the current iteration of the nearest cycle from it. Transfers control to the condition section while or do wihle statement, or a range for the next time through the loop, or a conventional expression for circulation of the head.
  
Depending else (dangling else): is a saying, referring to how to handle the situation if more minutes else branch nested if statements. C ++ language provision, if not before else should match with a match together. Use braces can be located on the inner if statement to hide, so programmers will be able to better control the match and the else if.
  
default label (default label):Tag is a special case, when the value of the switch expression and all case labels can not match the contents of the program execution under the default label.
  
do while statement (do while statement): the while statement similar, except that the do while statement executes the loop, the determination condition. Body of the loop code will be executed at least once.
  
Exception class (exception class): a library defines a set of classes, for indicating an error occurred program. Table 5.1 (page 176) shows the different uses exception classes.
  
Exception declarations (exception declaration): located in a catch clause declaration specifies the type of exception process can catch clause.
  
Exception handling code (exception handler): the program somewhere throws an exception, the exception codes another for processing. And catch clauses are synonymous.
  
Exception safety (exception safe): is a term meaning is expressed when an exception is thrown, the program can perform the correct behavior.
  
Expression statement (expression statement): namely a later expression followed by a semicolon, so the expression evaluation of the implementation process.
  
Control flow (flow of control): execution path to the program.
  
for statement (for statement): provides Iteration statements iterations performed. Often used to traverse a container or repeated several times calculated.
  
goto statement (goto statement): Order controller unconditional branch to the same function with a specified tag statement. goto statement is likely to cause confusion control flow of the program, it should be prohibited.
  
if else statement (if else statement): the determination condition, if a branch or else branch statements are performed according to the result.
  
if statement (if statement): judgment condition statement is selectively performed based on the result. If the condition is true, the code is executed if the branch; if the first statement after the condition is false, control is transferred to if structure.
  
Labeled statement (labeled statement): in front of statements with the label. The so-called label refers to an identifier and is followed by a colon. An identifier for the same, the same number as the tag can also be used for other purposes, without disturbing each other.
  
Empty statement (null statement): contains only a semicolon statement.
  
Initiate (raise): meaning similar throw. In C ++, the statement said either throw an exception, it can be said to throw an exception.
  
For statement range (range for statement): iterating statements in a sequence.
  
The switch statement (switch statement): a conditioned statement, evaluated first switch key behind the expression, if the value of the expression a case label is equal before the program directly across the code beginning this case the label If there defalut label, proceed from the default label; if not, the end of the switch statement.
  
terminate: is a standard library function that is called when an exception is not captured. termination terminate execution of the program.
  
throw expression (throw expression):An expression that interrupt the current execution path. throw expression throws an exception and transfers control to the nearest catch can handle the exception clause.
  
try block (try block): Followed the try keyword block, and one or more catch clauses. If the code throws an exception try block and a catch clause wherein the matching exception type, exception processing is the catch clause. Otherwise, there will be abnormal peripheral processing try block, or program termination.
  
while statement (while statement): As long as a specified condition is true, has been performed iteratively target statement, with the true value of different conditions, the cycle may be performed multiple times, it might never be executed.

Guess you like

Origin www.cnblogs.com/isChenJY/p/11459979.html