|
CS 2073, Fall 2005 Program 8 Random Walk in the Plane Due (on time): 2005-10-31 23:59:59 Due (late): 2005-11-02 23:59:59 |
|
Program 8 must be emailed to:
nrwagner@cs.utsa.edu following directions for: running and submitting a C program, with deadlines:
|
char g[40][40];
Normally, we would use a defined constant for the size of the grid:
#define SIZE 40 char g[SIZE][SIZE];
void blankgrid(char g[SIZE][SIZE]);
void printgrid(char g[SIZE][SIZE]);
char alf[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz";
This defines a string of length 52, so that alf[0] through alf[51] refer to characters 'A' through 'z'. Then you can take the current number of steps up to a give square, divide by 10, and remainder by 52 to get an index into the alf array.]
|
Contents of email submission
for Program 8: Last Name, First Name; Course Number; Program Number.
|