Horje
delete specific row from dynamic 2d array c++ Code Example
delete 2d dynamic array c++
for (int i = 0; i < numRows; i++) {
    delete [] world[i];
//    world[i] = 0;  // <- don't have to do this
}
delete [] world;  // <- because they won't exist anymore after this
world = 0;
delete specific row from dynamic 2d array c++
string** new_array = array;
for(int i=0; i<numRows; i++){
  new_array = new string[coloumns]
    if(i != n){ // <- if you want to delete nth row then
        new_array[i] = array[i];
    }
}
array = new_array; // <- now array excluding nth row is saved in this pointer.




Cpp

Related
sfml draw tex Code Example sfml draw tex Code Example
OPA in expanse Code Example OPA in expanse Code Example
how to check is some number is divisible by 3 in c++ Code Example how to check is some number is divisible by 3 in c++ Code Example
add on screen debug message ue4 Code Example add on screen debug message ue4 Code Example
iterate vector from end to begin Code Example iterate vector from end to begin Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9