I pull the numbers from the text file and fill it with an array of type int.
I insert the values into the array, iterating over the .txt file with these lines of code (where k is the number of numbers in the TXT file):
for (int j = 0; j < k; j++)
inputFile >> tab[j];
When the numbers in the text file are less than 2,147,483,647, which is the maximum size of an integer type, everything goes smoothly.
When a number is greater than this, the program, I assume, overflows and does not insert it, but after that also cannot insert any number.
What causes it not to insert more numbers after overflow?
source
share