account.cpp.svn-base

来自「QT方面的开发」· SVN-BASE 代码 · 共 18 行

SVN-BASE
18
字号
#include  "account.h"#include <cstring>#include <iostream>using namespace std;int main() {    InsecureAccount acct;    acct.deposit(6.23); /*  Error! No matching function -           hidden by deposit(double, int) */    acct.m_Balance += 6.23; /* Error! Member is protected,         inaccessible. */    acct.Account::deposit(6.23); /* Hidden does not mean        inaccessible. We can still access hidden public members        via scope resolution. */    return 0;}

⌨️ 快捷键说明

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