Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
003#
#include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int newMoney; int currentMoney; class BankAccount { public: int deposit(int newMoney, int currentMoney){ return newMoney + currentMoney; } public: int withDrawal (int newMoney, int currentMoney){ return newMoney - currentMoney; } public: string askingChose (){ cout << "Press 1: to deposit money.\nPress 2: to withdrawal money.\n"; } }; int main () { BankAccount accountObjetc; accountObject.askingChose(); return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Simple use of function templete and namespace
Scemo
subset sum=k(dp)
Trapping rain water problem
Comp Conexe
Template arguments pack
Reverse factorial
Grundy Number
binary
Array Subset of another array
Please log in to post a comment.