C++程序设计教程--面向对象分册(郑秋生)第一二三四章答案.docxVIP

  • 26
  • 0
  • 约1.56万字
  • 约 29页
  • 2018-01-05 发布于河南
  • 举报

C++程序设计教程--面向对象分册(郑秋生)第一二三四章答案.docx

C程序设计教程--面向对象分册(郑秋生)第一二三四章答案

第1章类和对象选择题1.C 2.B 3.C 4.A 5.C6.A 7.C 8 C9A10 C二、阅读题1.x=2,y=32.x=2,y=3x!=y3.Cstatic::va1=0cs1.vaI=1cs2.val=2cs1.val=4cs2.vaI=4四、改错题#include string.h#include iostream.hclass person {public: person(int n,char* nam,char s) { num=n; strcpy(name,nam); sex=s; coutConstructor called.endl; } ~person( ) { coutDestructor called.endl; } void display( ) { coutnum: numendl; coutname: nameendl; coutsex: sexendlendl; } priva

文档评论(0)

1亿VIP精品文档

相关文档