C++ Program To Control Motor