I am trying to read an array values from Tmin.txt file. I take array size from user viz. number of raw & column and then, read the following data from Tmin.txt file which look like this:
20 40 20 25 30
20 30 40 20 25
20 40 20 25 30
20 30 40 20 25
30 40 40 30 40
i am using getline, and then converting it to int by using atoi. But my code is not working. can somebody help me out on this.
"c = atoi(line);" is creating error, i don't know why.
Also, I have created a breakpoint before that line too but "line" didn't show any value. can u please run on your compiler.