Why would you think that you would get flamed, first off....?


I didn't look through everything, but your global declarations at the top will not work. You need to assign something to the array positions before you perform a calculation on it.

int x[3];

x[2] = 3;
x[1] = 2;
x[0] = x[2] + x[1];

or something to that effect.

Although... that happens before you even get to assign the numbers. Move your formula into the program for use after you grab the numbers and it will work....