What I would like to do is to reconcile in the following:
- if column A dates is more than 5 days a part - write a message
- if column B is greater than 10% away from each other - write a message
- if column C < D - write a message
I have no idea how to start this project. Please help me. Any suggestion on how to start or go about it will be appreciate it. Would like to thanks ahead of time. Thanks.
I would have a structure containing 7 elements representing the data. I would then calculate the new outputs, compare them with the old outputs and then copy the new outputs to the old outputs like so:
1 2 3 4 5
if ( abs(message_prev.colA - message.colA)>5) cout...
if ( abs(message_prev.colB - message.colB)/message_prev.colB >.1) cout...
if ( message.colC < message.colD) cout..
message_prev = message;
I got each column to represent in their own array. But I am not sure how to set up "message_prev" Can you look over my codes and let me know if i am on a right track? Thanks.
Oh wow, that condensed the code by a mile. When I start without debugging, a pop up comes "Has stopped working. a problem caused the program to stop working correctly." There was no error in the output.