... default state 缺省状态 default statement 缺省语句 default system for sequential file 顺序文件缺省系统 ...
基于14个网页-相关网页
In these cases, having some sort of general purpose default statement is very important.
在这种情况下,存在某种能够通用的default语句是非常重要的。
You can use the default statement with enums and switches, just as you would expect. Listing 7 illustrates this usage
正如您所期待的,在使用枚举和 switch 时,您可以使用 default 语句。
Consider the code above and realize that any enumerated value not specifically processed by a case statement is instead processed by the default statement.
研究以上代码可以看出,任何没有被case语句处理的枚举值都会被default语句处理。
应用推荐