Код:
#include <iostream.h>
#include <conio.h>
int main(){
int A[3][3] = {0,1,2,
3,4,5,
6,7,8};//матрица
int B[9] = {0,0,0,0,0,0,0,0,0};//одномерный массив
int index = 0;
for(int i=0; i<3; i++){
for(int y=0; y<3; y++){
B[index++] = A[i][y];
}
}
cout << "B= ";
for (i=0; i<9; i++){
cout<<B[i]<<" ";
}
getch();
return 0;
}