void project::step_nine() { int **faltu_matrix; faltu_matrix = new int *[temp_tasks]; for( int i=0; i<temp_tasks; i++) { faltu_matrix[i] = new int[temp_processors]; } for(int i=0; i<temp_tasks;i++) { for(int j=0; j<temp_processors;j++) { faltu_matrix[i][j] = 0; } } for(int i=0; i<temp_tasks;i++) { for(int j=0; j<temp_processors;j++) { if(temp_Matrix[i][j] == 0) { faltu_matrix[i][j] =1; } } } for(int i=0; i<temp_tasks;i++) { for(int j=0; j<temp_processors;j++) { cout<<faltu_matrix[i][j]<<" "; } cout<<endl; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)