Search:

Type: Posts; User: emj83

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,208

    The user specifies the length of the sequence...

    The user specifies the length of the sequence (length) ie to 10 and also times, which is how many they want it to go up i.e 2. Sequence is how many values should be in the sequence.

    I have so far:...
  2. Replies
    3
    Views
    2,208

    Sequence of numbers

    How can i easily produce a sequence of numbers?

    I would like to produce a sequence between 1 and 10 in 2's and I'm not sure how to do this.

    Can anyone help please?

    Thanks in advance
  3. Replies
    7
    Views
    2,023

    ok this probably is where I am going wrong. do...

    ok this probably is where I am going wrong. do you think you could give me a hint on how to get going on this please? would be very much appreciated
  4. Replies
    7
    Views
    2,023

    if((v[i][j]=1 && (amount4)) ||...

    if((v[i][j]=1 && (amount<3 || amount>4)) || (v[i][j]=0 && (amount<3 || amount>4))) return 0;
    /*if alive, then remain alive if 2 or 3. if dead then become alive if 3*/
    /*returns a 1 if cell is now...
  5. Replies
    7
    Views
    2,023

    it shouldn't go out of bounds, i have removed the...

    it shouldn't go out of bounds, i have removed the second else if and changed it to




    else return 1;


    this still doesn't rectify my problem though. i am new to c programming and finding it...
  6. Replies
    7
    Views
    2,023

    Game of Life Problems

    I am having problems coding the game of life for an assignment. I can generate my initial matrix and then subsequently add a border of 0's around it to aid in the summation of live/dead cells.

    the...
  7. Replies
    5
    Views
    2,181

    I am new to C programming and am finding it very...

    I am new to C programming and am finding it very difficult! I realise where I have gone wrong above, but still can't get a matrix with 0's and 1's in. now it just has weird numbers in. can anyone...
  8. Replies
    5
    Views
    2,181

    producing a matrix of 1's and 0's

    I am trying to produce a random matrix filled only with 1's and 0's but am struggling. I woudl appreciate anyones advice!

    This is my code so far:
    insert

    #include <stdio.h>
    #include <stdlib.h>...
Results 1 to 8 of 8