SSH would be your best option for C++ and compiling at home...
But, if SSH is not an option, you might want to check out This online C++ compiler before you go building your own form and such. It might save you some time.
Comment on Re: How Would I access a C++ compiler remotely through a Perl CGI Script?