Control robot to write word.C++