Note sure what the homework help policy is on the forum but if we're not allowed then please delete my post
I'm assuming you meant "programmed in C++". G++ is the name commonly used for the GCC C++ compiler.
There are many tutorials out there on the internet to get you started. Here's one of them:
http://www.epanorama.net/circuits/pa...nuxprogramming
The easiest way to test this is to hook up spare leds from the data pins on your pport to one of the grounds. This will make it easier to visualize what is happening. The best way to get started is to perhaps program something that will count in binary on the LED's. The reason being the output in the program is easy to do.
You can imagine the 8 datapins as binary counters. When you send for example 0xFF, translate that to an 8 bit binary number: 111111. This is the status of your 8 pins. So say for example I want the output on the port to be like this: 00100100. To achieve this, just translate that into the hex digits you need.
To do your counting program, you can just loop up throughthe hex digits. Just remember to add some pauses so that it doesn't count too fast
Also rememeber to be somewhat careful when you're hooking up circuits to the pport as it's slightly possibly to fry your motherboard with a wrong connection (ie: sending 5v in through the outputs)