This example asks you for a new password for a new user named Pat Smith.
See How to Build the DAO Method Samples.
If you have installed the DAO SDK, see InstallDirectory\DAOSDK\SAMPLES\NewPassWord.cpp.