I have one-dimensional array
int* a = new int[n * m];
and i need to treat it as two-dimensional i.e
a[i][j] = a[n * i + j]
I have tried playing around using directives and googled a lot. But nothing worked for me.
Is there any way to do so? Smt. like define a[i][j] a[n * i + j]
?
Thanks.