walletnotify=/path/binary %s
blocknotify=/parth/binary %s
The binary could be a compiled C++ program that takes arguments.
For example, you could use popen to execute shell command from C++ in a binary triggered by one of the notify-events:
string cmd=BITCOIND + " gettransaction " + txid + " 2>&1";
FILE* fp = popen(cmd.c_str(), "r");
Be aware that there might be security risks by running system commands from C++, and it is not generally advised, but it's a quick and dirty way to get things running for you.
Then you could proceed to manipulate the json data and do whatever further actions you need.
It's wise to use testnet when working with this, as you don't risk anything if you make a mistake, and you also do not pollute the blockchain with dust-transactions. There's also something called "testnet-in-a-box", not sure if it is updated and working anymore, but it used to work well before.
Edit: I noticed that in 0.10.0 you don't call bitcoind directly anymore, but use bitcoin-cli.
Good luck.