Nelson777 The second link you gave contains links to the different unit testing frameworks. I've used UnitCpp.
The unit test framework allows you to write unit tests. You create a unit test project, you add your includes, and you write unit tests that test the functionality of your code.
Just google CppUnit. There should be plenty of tutorials about it.