Hi everyone,
I'm reading two values from my text file after that I have to find all the possible points in this row*column data.
I wrote this code but I got an infinite loop as a result instead of getting N1=(1,1), N2(1,2) till the the last column which is n, and then it starts with the new row.
int m, n;
int c, r;
file >> m;
file >> n;
string N;
for (c=1; c++; c= n){
for (r=1; r++; r= m){
N=(r,c);
cout << "N = " << N << "( " << r << "," << c << " ) " << "\n";
}
}
Thank you!