Better snippet for c++ main