Not very difficult. It's far harder to pull off the trick as the person typing in the question.
But you're in the wrong forum. It's definitely not C++. Go to "View Page Source" and you'll see that it's in Javascript and hence you'll see the full source code, or at least the full source code minus any imported scripts. It's been a while since I've played with Javascript, but since it's client-side, you can download the whole page and turn off your internet connection and successfully run it locally on your machine, so you have the full source code, so you can pick it apart. If you have questions, ask in the JavaScript section.
You could certainly also write this as a non-web-based application in C++.
Reputation Points: 2614
Solved Threads: 687
Posting Expert
Offline 5,375 posts
since Jan 2008