It seems like the fable in question is "The Ant and the Grasshopper," probably Jean de la Fontaine's version (1668).
The moral of the story is that you should work hard and save now so you will have something to show for later (C).
In the fable, the hungry grasshopper goes knocking at the industrious ant's door to ask for food at the beginning of the winter, because it has been idle all summer and failed to amass provisions. The ant, who kept working during the warm season in order to have enough supplies for the winter, rejects the grasshopper by telling it to dance the winter away.
"Something to show for" should not necessarily be interpreted as wanting to display what you have earned through hard work; indeed that is not what the ant does. It simply means that you have something as a result of your efforts.