案例标签 [英] case labels
本文介绍了案例标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么在
切换语句中的情况标签中不允许使用通用整数表达式.. ????
解决方案
aa*****@gmail.com 写道:
为什么在
开关的情况下标签中不允许使用通用整数表达式声明.. ????
因为它们必须是编译时间常数。
-
Ian Collins。
3月28日上午10:03,Ian Collins< ian-n ... @ hotmail.comwrote:
aark ... @ gmail.com写道:
为什么在
切换语句中的情况标签中不允许使用通用整数表达式.. ????
因为它们必须是编译时间常数。
-
Ian Collins。
你能详细说明这个概念吗?
sumsin写道:
3月28日上午10:03,Ian Collins< ian-n ... @ hotmail.comwrote:
> aark。 .. @ gmail.com写道:
>>
为什么在
开关的情况下标签中不允许使用通用整数表达式声明.. ????
因为它们必须是编译时常量。
*请*不要引用签名。
>
你能详细说明这个概念吗?
语言要求案例标签是编译时常量。那里有
真的不是要概括的概念。
-
Ian Collins。
Hi,
why general integer expressions are not allowed in case labels in
switch statements..????
解决方案
aa*****@gmail.com wrote:Hi,
why general integer expressions are not allowed in case labels in
switch statements..????Because they must be compile time constants.
--
Ian Collins.
On Mar 28, 10:03 am, Ian Collins <ian-n...@hotmail.comwrote:aark...@gmail.com wrote:Hi,
why general integer expressions are not allowed in case labels in
switch statements..????
Because they must be compile time constants.
--
Ian Collins.Could you elaborate this concept?
sumsin wrote:On Mar 28, 10:03 am, Ian Collins <ian-n...@hotmail.comwrote:>aark...@gmail.com wrote:>>Hi,
why general integer expressions are not allowed in case labels in
switch statements..????Because they must be compile time constants.
*Please* don''t quote signatures.
>
Could you elaborate this concept?The language requires case labels to be compile time constants. There
really isn''t a concept to elaborate on.
--
Ian Collins.
这篇关于案例标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文