Control robot to write words. C++