I have a 2D array[25][50] that reads in a file with $ chars only in it.

I need to check a char "$" to see if it has any "$" characters in adjoining cells. What kind of coding would I use to find this? I'm stumped. Surely c++ must get easier.