设为首页 加入收藏

TOP

2.4 const Qualifier (3)
2013-10-07 15:25:18 来源: 作者: 【 】 浏览:70
Tags:2.4 const Qualifier

EXERCISES SECTION 2.4

Exercise 2.22: The following program fragment, while legal, is an example of poor style. What problem(s) does it contain How would you improve it

for (int i = 0; i < 100; ++i)
// process i

Exercise 2.23: Which of the following are legal For those usages that are illegal, explain why.

(a) const int buf;

(b) int cnt = 0;

const int sz = cnt;

(c) cnt++; sz++;

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇2.8 Class Types (1) 下一篇2.4 const Qualifier (2)

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·工业机器人TCP校准中 (2025-12-25 05:19:17)
·opc 通讯协议与 TCP (2025-12-25 05:19:15)
·labview中tcp/ip通信 (2025-12-25 05:19:13)
·新书介绍《Python数 (2025-12-25 04:49:47)
·怎么利用 Python 进 (2025-12-25 04:49:45)