📄 account.cpp
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -