Have you read the "Getting started guide" in the WPILib documentation found
here to try to understand what Drive() and Wait() do?
You should find the "Creating a Robot Program" starting on page 17 useful
http://first.wpi.edu/Images/CMS/Firs...artedWithC.pdf