My new problem:
Ok, I think I am doing this right. How do I get it to print the new array after I have changed the element to the guest initial?
EDIT: Also I know that I am probably not doing this the best way possible, but I have to do it the way I know how, I want to understand what I am doing, and this is just the way I work it out.
This is what I have:
#define ROWS 4
#define COLUMNS 2
void printArray(int a);
void modifyElement(int e, char guest);
char guest, junkChar;
printf("In which seat would you like to place a guest?\n");
printf("What is the initial of the guest you would like to place in this seat?\n");
printf("You have entered an invalid seat number, please restart program.\n");
void printArray(int a)
void modifyElement(int e, char guest)
e = guest;
ORIGINAL POST (already figured out):
How would I write a function to print an array that looks like this:
I am able to get the array, but dont know how to get the lines.
Thanks in advance for any input.
EDIT: Its actually supposed to look like a rectangular table with columns 1,3,5,7 and 2,4,6,8. I dont know why I cant make it look right in this post.