hello, i am making a simple program that you input numbers and it outputs them once you enter the number 42. i am doing this with vectors so the user can input as many numbers as they want. to output them i use this for loop:
1 2 3 4
for(unsignedint i = 0; i < numbers.size(); i++)
{
cout << numbers[i] << endl;
}
but when run the program it just exits once it gets to here. i did some debugging and the value for i at this point is 34632, or whatever the max number for int is. why dose it do this? how can i fix it?