The example appends three fields to a Fields collection then deletes them.
See How to Build the DAO Method Samples.
If you have installed the DAO SDK, see InstallDirectory\DAOSDK\SAMPLES\Append.cpp.