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
Operators
break.cpp
synowie abrahama
Dar
ამოცანა#2---------Point and a rectangle II
shell sort
Using C's sprinf() Function to Format Output String
Matrix
typeid
Stream9