There won't be a "\t" character after I print the 37th element, even though the void print function says to tab after every coordinate (x,y). Anyone know what's going on?
If you are using a[i] to call the print function you probably aren't calling
1 2 3 4 5 6 7
void print()
{
cout << '(' << x << ',' << y << ')' << "\t";
}
void print function
It is just a normal function with a return type of void and a function name of print. There is no such thing as a void function. It is a function which happens to return nothing(void).
Also '\t' is a single character. Though I would suggest cout << '(' << x << ',' << y << ")\t" The error you probably get is it goes out of bounds and goes to next line from overflow. I would just output a new line after each one instead of a tab. Or maybe more often than every 5th.