Many web hosting companies use a CGI wrapper for Perl scripts that prevents the common user from executing system calls... so, unfortunately, goBoating's technique probably won't work. Plausible in theory, though.
If you don't want to go through the hassle of porting the code to Perl (moreover, the paradigm shift to an interpreted language), you may play with this idea... There is a distinction between CGI programs and Perl and that distinction may allow you to simply rename the C++ file with a .cgi extension and execute it normally (if you're familiar with Apache, the AddHandler cgi directive doesn't tell Apache to parse everything through the perl interpreter, it's simply the #!/usr/bin/perl that does this).
If that doesn't work.. contact the sysadmin and see if he/she can create a scriptalias directory for you in which every file is treated as a script.
good luck.
brendanc@icehouse.net