title: C++ How to delete a specific row or column in a dynamically allocated 2d array?
body: <p>So, I dynamically allocated a 2d array in this way:</p>
  
  <pre><code>int rs, co;
  cin &gt;&gt; ro;
  cin &gt;&gt; co;
  
  int **array = new int* [ro];
  
  for(int i = 0; i &lt; ro; i++){
      array[i] = new int [co];
  }
  </code></pre>
  
  <p>I filled it: </p>
  
  <pre><code>for(int i = 0; i &lt; ro; i++){
      for(int j = 0; j &lt; co; j++){
          cout &lt;&lt; "Row: " &lt;&lt; i &lt;&lt; " Column: " &lt;&lt; j &lt;&lt; "  : ";
          cin &gt;&gt; *(*(array + i) + j);
      }
  }
  </code></pre>
  
  <p>My question is:
  how can I deallocate an X row or column where X is given by the user?
  I know I should use "delete" command but I can not understand how</p>