exec: Reverse in C++