title: Recursively printing out the sections and subsections of an outline
body: <p>Recursion is the one thing I have loads of trouble with. For this assignment we are supposed to print out an outline of sections and sub-sections. Take the following as an example.</p>
  
  <pre><code>Section 1 
   Section 1.A
     Section 1.A.1
     Section 1.A.2 
   Section 1.B
     Section 1.B.1
     Section 1.B.2 
  Section 2
   Section 2.A 
     Section 2.A.1
     Section 2.A.2 
   Section 2.B
     Section 2.B.1 
     Section 2.B.2
  </code></pre>
  
  <p>This example has a depth of 3 and height of 2. </p>
  
  <p>Here is my code thus far, which doesn't come anywhere near the correct output. </p>
  
  <pre><code>void printDepth(int depth, int width, int minusDepth, int minusWidth) {
      int i = 0;
      if(depth == 0)
          printf("Section XX\n");
  
  
      else {
          printf("\t");
          printDepth(depth -1, width, minusDepth, minusWidth);
      }
  }
  </code></pre>
  
  <p>Here is the call from main()</p>
  
  <pre><code>int minusDepth = 0;
  int minusWidth = 0;
  printDepth(depth, width, minusDepth, minusWidth);
  </code></pre>
  
  <p>However, for a depth = 4 and width = 5 this only prints out:</p>
  
  <p>\t\t\t\tSection XX</p>
  
  <p>I'm really not sure how to proceed. Recursion is the bane of my existence. </p>