logical c++ example added

Signed-off-by: Samuel Casa <samuelcasa9@gmail.com>
Merge branch 'master' of https://github.com/0xCA5A/code_smorgasbord