Automatic output after variable change?
Ok so firstly let me say that I'm a complete novice with coding and C++.
Right then, I have an assignment and one of the tasks asks me to automatically print value of my variable (at least, it think its called a variable?) every time i change it. I have no idea how to do this. I think I have to use some sort of boolean thing and the bit of the program that will make the printing happen will be in my class file, I think. But I have no idea how to implement this.
I'm probably making no sense but guidance would be really appreciated.
The program I'm making is a small bank account program. I have a class file and a main program file.