Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
project: bank account
#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 () { return 0; }
run
|
edit
|
history
|
help
0
2
replace_if-30-Seconds-of-C++
is_sorted_30-Seconds-of-C++
Test 12(2021)
Stream10
aaa666
Zadanie Kolokwium_2011_z4
MyStringv2
12
ADVENTURE CODE CSCI40