My preamble: sorry if my q is mundane.
I'm leanring form "the complete idiot's guide" (not recomended btw). Here's the code they have you type, it's a runtime array:
#define max 40
int number[max];//intlz array<max ie 40
int more;//promt user for more
while (1)//loop to get data
cout<<"enter number ";
cin>>number[count];//why do we need [count]
if (more=='n')//if statment ie continue or not
I run it and it won't stop. As far as I can tell the else statment doesn't repeat back into the loop, but I don't know what to put in.
Thanx in advance!