Use "#!/usr/bin/env hbcxx" to make C++ source code executable
...For simple programs, especially for quick and dirty personal toys, the day you have to write a proper build system may never come.
Instead just copy your C++ source code into $HOME/bin. Try it. It works.