C++语言基础教程 教学课件 作者 吕凤翥习题答案 1_ 第8章.docVIP

  • 4
  • 0
  • 约2.67千字
  • 约 4页
  • 2019-10-04 发布于广东
  • 举报

C++语言基础教程 教学课件 作者 吕凤翥习题答案 1_ 第8章.doc

PAGE PAGE 1 第8章 习题解答 8.1判断题 对的有4,6,7,9,11,13,15,16,18,20,21,23,24,25.26 8.2单选题 CDADC ACCBC 8.3填空题 1. public private protected 2. 私有 公有 3. 默认 默认 4. 类 类名:: 5. 类体 非 所有 6. friend A A 8.4程序结果 Default constructor called. Constructor called. a1=0,a2=0 a1=5,a2=8 Destructor called. Destructor called. 11 12 13 13 13 12 11 2005/10/1 2005/12/9 c1=12,c2=18 1 {} {1,2,3,4,5} 1 0 {1,2,3,4,5,6,7,8,9,10} 8.5编程题 1. #include iostream.h class Rectangle { public: Rectangle(int i,int j) { width=i;length=j; } double Perimenter() { return

文档评论(0)

1亿VIP精品文档

相关文档