C大学教程第10章实验报告.docxVIP

  • 1
  • 0
  • 约小于1千字
  • 约 2页
  • 2022-08-01 发布于山东
  • 举报
日期:2013.11.15  学号: 实验  1  创立  SavingAccount  类 实验内容:创立一个SavingAccount类。使用一个static数据成员annualInterestRate保留每个存款者的年利率。 代码实现: .\n; (77); coutSetAisnow:\n; ( ); cout\nDeleting77fromsetA...\n; (77); coutSetAisnow:\n; ( ); constintarraySize=10; intintArray[arraySize]={25,67,2,9,99,105,45,-5,100,1};IntegerSete(intArray,arraySize); cout\nSeteis:\n; ( ); coutendl; return0; } 履行结果: 实验3改正Time类 实验内容:改正使内部时间表示采用自子夜以来的秒数,客户能够使用类的public方法并获得相同的结果。且关于类的客户并没有任何可见的功能上的改变。 代码实现: rintStandard( ); coutendl; return0; } 履行结果:

文档评论(0)

1亿VIP精品文档

相关文档