int serials[MAX_PAX];
for (int i = 0; i <MAX_PAX; i++)
{
int max = 0;
serials[i] = randomnum(); // store random num in int serial
max++;
cout <<"serial" << serials[i];
break;
}
I have a return function that generates a random number, i want to store a few random numbers in the array serials[max_pax]. The point is for booking seats in a plane and i want to cancel serial numbers later in the program but but it only store one random number at a time so i can only book and cancel one seat at a time. Why is that, please help!!