for(int i=0; i=MAX; i++){
should be
for (int i=0; i
In Print ()
void Print(int A[], int &numUsed){
should be
void Print (int A[], int numUsed) { // and change forward declaration to match
for (int i=0; i=numUsed; i++)
should be
for (int i=0; i
Since numUsed = 0, nothing will be printed. You need to call Print () after Append ().
I'm trying to write a list of numbers in an array while being able to Append them and print them, I am having trouble with my Print function and the for loop I have used with it.
Here is my code:
http://pastebin.com/6Ahuq3pN