I am working on this project where I need to see if data in a struct has changed and if so I need to do something. With that being said, is there a way to check to see if data in a struct has changed. My first approach was to make a copy of the struct and compare the orginal struct with the copy but I was having problems with the operator==. If anyone can give me input on this it will be greatly appreciated.
How do you define 'change'? For example, if an int variable holds the value 5 at time t1, then the value 7
at time t2 > t1 and then the value 5 again at time t3 > t2, has it changed between the times t1 and t3?