I'm a new with this programming. Currently, I am working with 2D array from input file, and need to change the value from it to new value and write into output file. Suppose, the 2d array is 10 x 10;
I would like to remain the int -99, and change value other than int -99 to int 2.
Below are the code am working with, and the new value changed into output file were not as what I want to, however. I would like to know where should I correct my code?