Question about multi-dim arrays

So I' am working on this side project for fun here. I' am using a multi-dimensional array throughout the project. Now I' am having an issue with actually holding a position with in the multi-dim array. Here's an example of what I' am kind of talking about.

1
2
3
4
5
6
7
8
9
void playerHuman(char theBoard[][HEAVY_FIRE], const int H_FIRE)
{
     char playerHuman = 143
     char deathDealer = theBoard[18][10]
     
     
     deathDealer = playerHuman;
     
}


I know that is wrong, but just to give an example I put it up. What I want to do is declare a variable that is a coordinate in the multi-dim array.

That example is just really printing the character within the multi-dim array but I have no control over it, because there is no variable attached to that position. I' am not able to use it in different functions like for movement.
Topic archived. No new replies allowed.