Hello, I'm just wondering really..
I have a 2D matrix but I've defined it as a 1D matrix. So for example:
double *matrix = new double[N*M];
My question is, I'm going to be manipulating data very shortly and want to read this data in from a text file..
Say if the contents of the text file was:
0 1 0 1 0 0 0 0
0 1 1 1 1 1 1 1
0 1 0 1 0 1 0 1
I know that it is possible, I'm just confused on how I would go about adding the rows and columns (into this style)
Any help would be great, thanks =)