Account1 C++ account BankAccount class deposit, withdraw, 계좌 이체 #include #include using namespace std; class BankAccount { // 은행 계좌 private: int accountNumber; // 계좌 번호 string owner; // 예금주 int balance; // 잔액을 표시하는 변수 public: void setAccountNumber(int aNumber); void setOwner(string myowner); void setBalance(int amount); // balance에 대한 설정자 int getBalance(); // balance에 대한 접근자 void deposit(int amount); // 입금 함수 void withdraw(int amount); // 인출 함수 void print();.. 2019. 1. 10. 이전 1 다음