Search:

Type: Posts; User: jjbuchan

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,949

    How to use assert?

    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...
  2. Replies
    4
    Views
    1,395

    Oh yeh, i never noticed that before. thanks

    Oh yeh, i never noticed that before. thanks
  3. Replies
    4
    Views
    1,395

    Thanks that helped. But the thing is I am only...

    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...
  4. Replies
    4
    Views
    1,395

    Problem in loop. Please Help. Urgent!

    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,...
Results 1 to 4 of 4