Compare Date and show the difference

mrexp21's Avatar, Join Date: May 2012
Newbie Member
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 .
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
What OS and compiler are you using?