Run Code
|
API
|
Code Wall
|
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
Test 4(2020)
Ptrtest
next greater palindrome
next permutation leetcode
Hi
kadane's algorithm 2
te lo paso
Proyecto 1
Ploshtina na krug
minmax