Code added by Add Tab Disappears

What is the name of the .cpp tab?

After you do the save, do you see the little message that pops up and says "{sketch name} saved", where {sketch name} is the name of your sketch?