Hello,
If i have this code
this code return a access violation, so what can i do for the changes in function init on variable matrix can be aply on main function?Code:void init( char ** matrix) { matriz = new char*[5]; for(int i = 0 ; i < linhas; i++) matriz[i] = new char[5]; for(int i = 0; i < 5; i++) for(int j = 0 ; j <5; j++) matriz[i][j] = 'm'; } int main() { char **matrix; init(matrix); cout << matrix[0][0]; }
sorry about my english
[]