hi everyone,
i'm not beginner but i learn programing in hack kind, i don;t have any idea about my problem(in C++ wrote)!!! Read Plz post if u have any Idea, i want to here it, it will be your kind if u post here!!!
i have a program that program creating a log file just like this format,
Year 2009,Month 10,Day 15,Time 11:10:48,Code 432
Year 2009,Month 9,Day 29,Time 11:10:48,Code 442
Year 2009,Month 11,Day 1,Time 11:10:48,Code 495
Year 2009,Month 11,Day 4,Time 11:10:48,Code 415
Year 2009,Month 11,Day 7,Time 11:10:48,Code 400
Year 2009,Month 11,Day 9,Time 14:12:10,Code 415
i need codes for read last line first ,and show Warrning msg if last Code used in earlier than one week (mean 168 hours) !!!
and if times like it :
14:12:10
11:10:48
calculate it in int mean show=3 hours
but if u don't have idea , with time checking forget it !!!
just write codes if program saw last line code if have same code with any line show warning
guys i need help of all u !!! i can change log format just if u have any idea!!! post it here
Regards
Kourosh