So, what have you done so far? Do you not understand the assignment?
Hint: use a for loop, the modulus operator with the number two to find if it is even or odd
marinme
Junior Poster in Training
63 posts since Apr 2005
Reputation Points: 10
Solved Threads: 1
Arrays are indexed a[i], not a(i).
a * new int[num_cells];
Typo?
a = new int[num_cells];
int=b;
Did you meani instead of int?
b=nul;
b? nul?
Learn to use whitespace to make your code easier to read.
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314