Convert rotate.c to C++