找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 280|回复: 1

Question1.19:I don't understand why I can't use const values in initializers and array dimen

[复制链接]

210

主题

371

回帖

0

积分

管理员

积分
0
发表于 2013-7-17 20:20:44 | 显示全部楼层 |阅读模式

Q: I don't understand why I can't use const values in initializers and array dimensions, as in
                                    const int n = 5;
                                     int a[n];
A: See question 11.8.

210

主题

371

回帖

0

积分

管理员

积分
0
 楼主| 发表于 2013-7-17 20:24:28 | 显示全部楼层
问题:我不理解为什么我不能使用初始化好的const值在数组的大小中,像这样
                    const int n = 5;
                                     int a[n];
回答:参考问题11.8。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

果子博客
扫码关注微信公众号

Archiver|手机版|小黑屋|风叶林

GMT+8, 2026-2-2 02:52 , Processed in 0.074501 second(s), 20 queries .

Powered by 风叶林

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表