In your class you have declared your private data members, which would be initialized in the constructor once you instantiate your object. But instead what's happening is you have declared and initialized local variables in your constructor that only exist in the scope of the constructor. So when you enter b and call your current.get_balance() function, its outputing the balance data member which was never initialized in the constructor. So it's just outputting garbage. Remove the doubles from your variables in the construtor. Hope this helps.
Thanks. An overlooked error on my part about the double statement not returning anything. That was the last of four Class Implementations I had been working on for 6 hours. Guess I should have had a little more caffeine. Thanks for your help on that and the constructor issue.
guest,
I'm using bloodshed. Not sure how this slipped by either...