The source code for these examples are in the 'examples' directory. For details on how to compile and run these examples see:
The quick guide Quickstart: how to open a results file shows how to get very basic information from the search result files with just a few lines of code. The following examples are more comprehensive.