Can anyone help me... i want to write same function using shared_ptr ?! void allocation(int **&array, int &row, int &column) { cout << "Unesite dimenzije matrice : "; cin >> row >> column; niz = new int *[row]; assert(array != nullptr); for (int i = 0; i < row; i++) array[i] = new int[column];
}
Aucun commentaire:
Enregistrer un commentaire