I am new to programming in C++ and created this program, this was mostly to test functions, but has led me to some trouble.
When I run this program, the money variable resets to 20 after the code executes the buyItem function. Is there any way around this, and are there any other tips you could give me?
Thanks in advance.