Available under Creative Commons-ShareAlike 4.0 International License. 
The syntax for the if then else control structure within the C++ programming language is:
Example 12.1: C++ source code: Layout of an if then else
if (expression)   {   statement;   } else   {   statement;   } 
    
      Note: The test expression is within the parentheses, but this is not a function call. The parentheses are part of the control structure. Additionally, there
      is no semicolon after the parenthesis following the expression.
    
  - 瀏覽次數:2825
 
      



