I have been trying to find a general method to typing the following code.
if ( colb[1][mb] == '*' && colb[2][mb] == '*' && colb[3][mb] == '*' && colb[x][mb] == '*' )
This is ok but by about x = 10 its just too painful.
I have thought of a solution whereby you make a for loop outside that basically breaks if (and return 0 to some int- check_colb) any of the cob[n][mb] != '*'
and the if loop can just check if check_colb is 1 or 0.
However I am wonder is there a specific syntax or method that is typical in such situations? (I am thinking there must be...)
This is the first time I am in the computer science forum, nice to meet you all.