Technote/Data Structure C++ [C++] 클래스 Pooh0216 2009. 9. 18. 00:37 #include using std::cout; using std::endl; class Account{ public: char accID[20]; char secID[20]; char name[20]; int balance; void Deposit(int money){ balance+=money; } void Withdraw(int money){ balance-=money; } }; int main(void) { Account yoon = {"1234","2321","yoon",1000}; yoon.Deposit(100); cout<<"잔 액 : " < 저작자표시 (새창열림)