the biggest thing to remember with using c or c++ for cgi.
the output of the cgi has to be in a web format.
( html )
you have to send everything needed for a valid webpage from the app.
the headers included.
if you don't, then the site visitor will just get a screen ( browser window ) of plain text.
Code:
echo <<< <HTML><br>/n;
echo<<< <title>Title of page / site </title><br>/n;
if you are coding the site to w3c standards, you would need to make sure you send the dtd and validation header, include a link to the validator..
everything.