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:...
Type: Posts; User: emj83
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:...
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
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
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...
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...
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...
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...
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>...