00. 目錄
01. 概述
02. 簽名
03. 描述
04. 注意
05. 參數
06. 結果
07. 附錄
default - switch段中的預設分支。
<code>default( : : : )</code>
default在switch段中開放備用分支。 如果switch語句的控制表達式的計算結果不比對前面的case語句的任何整數常量,則通路該分支。
原文描述:
default opens an alternative branch in a switch block. this branch is accessed if the calculated control expression of the switch statement does not match any of the integer constants of the previous case statements.
無
default(作為算子)總是傳回2(h_msg_true)。
hdevelop例程
switch_case.hdev use switch/case statement for a multiway branch
程式示例<code></code>