Array constants can only be used in initializers

if you use the {...} array form in anything but an initializer.

 

WRONG

 

 

RIGHT

 

ps:When using the initializers, an array must be declared, constructed and explicitly initialized at the same time.

posted @ 2010-06-19 16:39  0707  阅读(3438)  评论(0编辑  收藏  举报