Code này nó cứ báo lỗi … has stopped working ạ … 
#include <conio.h>
#include <stdio.h>
#include <iostream>
using namespace std;
void InitArray(int **A, int row, int colum);
void AddArray(int **A, int **B, int row, int colum);
void DisplayArray(int **A, int row, int colum);
void Delete(int **A, int row);
void InitArray(int **A, int row, int colum){
A = new int*[row];
for (int i = 0; i < row; i++){
A[i] = new int[colum];
for (int j = 0; j < colum; j++){
cout << "Phan tu [" << i << "," << j << "]=";
cin >> A[i][j];
}
}
return;
}
void DisplayArray(int **A, int row, int colum){
for (int i = 0; i < row; i++){
for (int j = 0; j < colum; j++)
cout << A[i][j] << " ";
cout << endl;
}
return;
}
void main(){
int **A = NULL, row, colum;
cout << "so dong= ";
cin >> row;
cout << "so cot= ";
cin >> colum;
cout << "Khoi tao mang: " << endl;
InitArray(A, row, colum);
cout << " show Array: " << endl;
DisplayArray(A, row, colum);
}
:
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?