A free to use service to run live examples of code
Compile Link Run
Technically, not just limited to using C++. This tool will let you enter a text file, and then run a shell command. Standard practice is to just write up a quick SSCCE and show people your problem with real code.