Compare Date and show the difference

Newbie Member
21May2012,07:18   #1
mrexp21's Avatar
I have a file, 'date-list.txt' which has date in it. For example , 20 May 2012 .

Now I want to compare this date with current system date and show the difference in days .

How can i compare dates and shows difference in days in C++.?

Im really a c++ beginner . So , if possible , please show and guide me with codes . Thanks in advanced .
Mentor
22May2012,13:08   #2
xpi0t0s's Avatar
What OS and compiler are you using?