Im trying to read a file in cpp/clr and perform calculations on it and display it using GUI but Im getting errors Im not familair with
I am opening the file in binary mode and trying to get the first digit (number_of_poly) in the first row, the total number of rows, and the second column digit (number_of_vars) in the second row, the total number of columns, into an array of size number_of_vars (buff). I’m adding them to and storing them at the same index in another array of the same size (sum). I am getting the buffer overrun error at this point, reading to buff. I assume it’s because there are 10 rows (number_of_poly) but my array is of 5 (number_of_vars). While adding I get invalid data from ‘this->buff’ error.