reverse polish C++ by LinYUAN