Update dollar.sample.cpp

minor fix