#include #define RANGE 50 #define MAX RAND 32767.0 #define SIZE 5 /*Function Protoypes*/ void randomMapo ; /*Global Variables*/ int main(int argc, char* argv[]) //maximum random number //maximum size (radius) of an obstacle //cout << "Please enter the desired number of obstacles: "; //cin >> num obstacles; randomMapo ; printf("The obstacle information was written to: map.txt\n"); printf("The line segment information was written to: segments.txt\n"); return 0 ; FUNCTION NAME: DATE: DESCRIPTION: */ void randomMap( randomMap Oct. 14, 2002 This function will take the value entered by the user and generate that many random obstacles. The positions will be stored to a file called 'map.txt' This function will also save the line segments that make up the boundary of each obstacle to a file named 'segments.txt'. int center, center; int ij,k; int radius; int num obstacles; //Obstacle's center point //Radius of the obstacle //User specified number of obstacles