⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 account.cpp

📁 压缩包里有教材<<C++模式设计-基于QT4开源跨平台开发框架>>所有源码
💻 CPP
字号:
//start id=ctor#include  "account.h"#include <iostream>Account::Account(unsigned acctNum, double balance, string owner) :     m_AcctNum(acctNum), m_Balance(balance), m_Owner(owner)    { }JointAccount::JointAccount (unsigned acctNum, double balance,                            string owner, string jowner)    :Account(acctNum, balance, owner),      m_JointOwner(jowner)  /* base class initialization required */     { }JointAccount::JointAccount (const Account& acc, string jowner)    :Account(acc), /* compiler-generated copy constructor call */     m_JointOwner(jowner)    { }//end//start id=dtorAccount::~Account() {    cout << "Closing Acct - sending e-mail to primary acctholder:"         << m_Owner << endl;}         JointAccount::~JointAccount () {    cout << "Closing Joint Acct - sending e-mail to joint acctholder:";    cout << m_JointOwner << endl;}//end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -