I have this method:
void setvisible(Cell * C, int val)
and i am asked to use assert to check that val is between 1 and 9 inclusive.
I wrote
assert( (val >= '1') && (val <= '9') );
Can...
Type: Posts; User: jjbuchan
I have this method:
void setvisible(Cell * C, int val)
and i am asked to use assert to check that val is between 1 and 9 inclusive.
I wrote
assert( (val >= '1') && (val <= '9') );
Can...
Oh yeh, i never noticed that before. thanks
Thanks that helped. But the thing is I am only meant to be using one global variable - group.
I noticed it will work if you only take Cellgroup out of the method and leave Coord, however is there...
The code below will print out:
Row: 0, Col: 0, p: 0, m: 0
Row: 0, Col: 1, p: 0, m: 0
Row: 0, Col: 2, p: 0, m: 0
Row: 1, Col: 0, p: 0, m: 0
Row: 1, Col: 1, p: 0, m: 0
Row: 1, Col: 2, p: 0,...