C++程序设计教程_第11章.pptVIP

  • 2
  • 0
  • 约1.77万字
  • 约 71页
  • 2026-07-14 发布于广东
  • 举报

习题couts=sendl;}intfun(inti){if(i=10)throwi;returna[i];}4.2#includeiostreamusingnamespacestd;voidf();classT下一页上一页返回习题{public:T(){coutconstructorendl; try{throwexception;}catch(char*){coutexceptionendl;}throwexception;}~T(){coutdestructor;}};下一页上一页返回习题voidmain(){coutmainfunctionendl;try{f();}catch(char*){coutexception2endl;}coutmainfunctionendl;}voidf(){Tt;}下一页上一页返回习题5.程序设计题5.1以String类为例,在String类的构造函数中使

文档评论(0)

1亿VIP精品文档

相关文档