1 2 3 4 5
float* pmatrix = &matrix[0][0]; int size = m*n; for(int i = 0; i < size; ++i) std::cin >> pmatrix[i];