Rover group's stub code
Page 1 of 1
Rover group's stub code
After the group leader meeting Michael attended the other day apparently it was decided that every group's code will be compiled and executed together. So, our getcommand function is now obsolete and as such the only stub code actually required for us is a function to call our rover wrapper functions. Such is attached below.
- Code:
//File: stub.cpp
//Purpose: Provides stub code demonstrating the usage
// of rover commands.
//Author: Michael King, Brittney Harris, Allan Hoffman, Dustin Evans
//Last modified: 2/01/09
#include "Rover.h"
#include <windows.h>
void main() {
Rover rover;
//Testing series of movement commands with
//2 second sleeps inbetween.
rover.moveForward();
Sleep(2000);
rover.moveBackward();
Sleep(2000);
rover.turnRight();
Sleep(2000);
rover.turnLeft();
Sleep(2000);
//Testing movement commands while rover is "killed"
rover.killActions();
Sleep(2000);
rover.moveForward();
Sleep(2000);
rover.moveBackward();
Sleep(2000);
//"unkilling" rover and testing commands.
rover.unkillActions();
Sleep(2000);
rover.moveForward();
Sleep(2000);
rover.moveBackward();
}
hoffma3- Posts : 6
Join date : 2009-01-08
Similar topics
» Rover group meetup times.
» Rover group header file.
» What is due next week?
» Example Source Code
» Rover wrapper brainstormin
» Rover group header file.
» What is due next week?
» Example Source Code
» Rover wrapper brainstormin
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|