I'm new to c++ and I want a variable that represents fuel to stay zero even if/when the program tries to subtract from it. The problem is that sometimes it becomes a rather large number. I am guess that the variable is looping to the highest number that it can be. But I could be misunderstanding the situation. If not how do I stop this. If I am miss understanding tell me what is going on.
This is an example
unsigned int num = 0; num = num - 1; cout << num;