Class, i have a problem with withdraw tax



#include <iostream>
#include <cmath>
using namespace std;

class BankAccount
{
public:
BankAccount ();
void read();
void print () const;

private:
int cus_num;
int iden;
int balance;
int wit_tax;
int wit_mon;
int result;
int end_res;
};

Last edited on
You never recalculate the value of end_res after you have made the withdrawal.
Topic archived. No new replies allowed.