Use the links in the first line of the listings to open them online in the Compiler Explorer at godbolt.org and copy them if necessary. You can transfer the listings to your IDE this way, or view the program output directly in the Compiler Explorer, experiment with the code, and view modified output online.
If you would like to save the code examples locally, download this zip archive, which also contains all the sources: