I need to know what I am doing wrong? I understand that theoretically it should not take you days to type in your name. But this is the simplest least amount of code I could use from mine with out changing a lot.
Please dont respond with anything to complex, I will not understand.
What I am trying to do is make a video store program, and right now I am trying to make a way to calculate last rental using time in the code.
Be careful! The operator = (one equal sign) is not the same as the operator == (two equal signs), the first one is an assignment operator (assigns the value at its right to the variable at its left) and the other one (==) is the equality operator that compares whether both expressions in the two sides of it are equal to each other.
But it should help. In your code, the uninitialized variable diftime is being compared to the difference between the last rental time and now.Whereas with =, it would be set to the difference.