C++PrimerPlus第五版第十章习题参考答案 .pdfVIP

  • 2
  • 0
  • 约9.48千字
  • 约 14页
  • 2023-12-03 发布于河南
  • 举报

C++PrimerPlus第五版第十章习题参考答案 .pdf

C++PrimerPlus 第五版第十章习题参考答案 Chapter 10 PE 10-1 // pe10-1.cpp #include #include // class declaration class BankAccount { private: char name[40]; char acctnum[25]; double balance; public: BankAccount(char * client = no one, char * num = 0, double bal = 0.0); void show(void) const; void deposit(double cash); void withdraw(double cash); }; // method definitions BankAccount::BankAccount(char * client, char * num, double bal) { std::strncpy(name, client, 39); name[39] =

文档评论(0)

1亿VIP精品文档

相关文档