online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include<iostream> using namespace std; class Account { private: double balance; public: Account(){} Account(double balance){ this->balance=balance; } void Deposit(double balance){ cout<<endl<<"Account()"<<endl; this->balance=balance; } void WithDraw(double balance) { cout<<endl<<"Account()"<<endl; if(this->balance>balance){ this->balance=this->balance-balance; } else cout<<endl<<"Error"<<endl; } void CheckBalance(void) { cout<<"Balance: "<<balance; } void setBalance(double balance) { this->balance=balance; } double getBalance(){ return balance; } }; class InterestAccount : public Account { private: double Interest; public: InterestAccount(double Interest,double balance) : Account(balance){ this->Interest=Interest; } InterestAccount(){ Interest=0.30; } void Deposit(double balance) { cout<<endl<<"InterestAcc()"<<endl; balance=balance*Interest; setBalance(balance); } }; class ChargingAccount : public Account{ private: double fee; public: ChargingAccount(){} ChargingAccount(double fee,double balance) : Account(balance) { this->fee=fee; } void WithDraw(double balance){ cout<<endl<<"ChargingAcc()"<<endl; if(getBalance()+3>balance){ balance=getBalance()-balance; setBalance(balance); } else cout<<endl<<" ERROR "<<endl; } }; class ACI : public InterestAccount, public ChargingAccount { public: ACI(){ } ACI(double fee,double balance,double Interest) : InterestAccount(Interest,balance), ChargingAccount(fee,balance) { } void transfer(double balance,Account ACC){ cout<<"Account"; ACC.setBalance(balance); } void transfer(double balance,InterestAccount IG){ cout<<"InterestAcc"; IG.setBalance(balance); } void transfer(double balance,ChargingAccount CG){ cout<<"ChargingACC OBJ"; CG.setBalance(balance); } }; int main() { double balance=10000; // cout<<"Enter Balance to transfer: "; // cin>>balance; ChargingAccount CG; InterestAccount IR; ACI obj; obj.transfer(balance,CG); obj.transfer(balance,IR); }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue