Help with Spin for Rotations in Autonomous

This may seem like a simple question, but our programmers have been struggling to program spin for rotations instead of spin for time in C++. I know it’s possible in Python, but they do not know Python unfortunately. Would anyone be able to help us figure this out? Thanks.

If you are programming on normal VEXcode, you can see a list of commands that you can use on the left side of the screen. If you are using VEXcode Pro, there is a question mark icon in the top right of the screen that you can click on for a list of commands. To answer your question, you can use a command like this:

motor.spinFor(direction, rotations, turns)

spin for rotation
spinFor(directionType dir, double rotation, rotationUnits units, double velocity, velocityUnits units_v, bool waitForCompletion=true)

spin for time
spinFor(directionType dir, double time, timeUnits units, double velocity, velocityUnits units_v)

please ref VEX Help for more information