设为首页 加入收藏

TOP

1.3 AWord about Comments (3)
2013-10-07 16:13:37 来源: 作者: 【 】 浏览:80
Tags:1.3 AWord about Comments

EXERCISES SECTION 1.3

Exercise 1.7: Compile a programthat has incorrectly nested comments.

Exercise 1.8: Indicate which, if any, of the following output statements are legal:

  1. std::cout << "/*";   
  2. std::cout << "*/";   
  3. std::cout << /* "*/" */;   
  4. std::cout << /* "*//* "/*" */;  

After you’ve predicted what will happen, test your answers by compiling a program with each of these statements. Correct any errors you encounter.

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇1.3 AWord about Comments (1) 下一篇14.8 本章主要内容

评论

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

·数据库:推荐几款 Re (2025-12-25 12:17:11)
·如何最简单、通俗地 (2025-12-25 12:17:09)
·什么是Redis?为什么 (2025-12-25 12:17:06)
·对于一个想入坑Linux (2025-12-25 11:49:07)
·Linux 怎么读? (2025-12-25 11:49:04)