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 .