You need a separate account to edit the playground.
On the left side of the playground pages, there is a section called Participate, with a link under that to create an account.
By the way, there are no .h or .cpp files on the page you linked to. Just a sketch. Which .h or .cpp files are you referring to? What changes do you propose to make to that page?