title: Something in this function is crashing my program!
body: <p>Howdy, When my program begins executing the code in case N of the switch statement it crashes. I am not sure why. Anyone care to take a gander?</p>
  
  <p><strong>Code:</strong> (I suspect the problem is occurring somewhere in case N of the switch statement)</p>
  
  <pre><code>#include "header.h"
  
  void findSeats(int&amp; FC_Row, int&amp; FC_Col, int&amp; EconRow, int&amp; EconCol, int&amp; ticketNum, int&amp; rowNum, char&amp; ticketType, char&amp; seatType, int airplane[][6])
  {
      int aisle,  col;
      char letterCol;
  
      if (ticketType = 'F')
          {
              switch (seatType)
              {
                  case 'W':
                  if (airplane[rowNum - 1][0] == 0)
                      {
                      airplane[rowNum - 1][0] = 1;
                      cout &lt;&lt; "Your seat is " &lt;&lt; (rowNum) &lt;&lt;  "A" &lt;&lt; endl;
                      }
                  else if (airplane[rowNum-1][FC_Col - 1] == 0)
                      {
                      airplane[rowNum - 1][FC_Col] = 1;
                      cout &lt;&lt; "Your seat is " &lt;&lt; (rowNum) &lt;&lt;  "D" &lt;&lt; endl;
                      }
                  else
                      {
                      cout &lt;&lt; "There are no window seats in that row. Please choose a different row." &lt;&lt; '\n' &lt;&lt; "(use the seating chart to determin where open seats are.)" &lt;&lt; '\n' &lt;&lt; "Row Number:" &lt;&lt;  endl;
                      cin &gt;&gt; rowNum;
                      while (rowNum &gt; (FC_Row))
                      {
                          cout &lt;&lt; "That row is not located in our first class section. choose a row numbered 1-" &lt;&lt; (FC_Row) &lt;&lt; endl;
                          cin &gt;&gt; rowNum;
                      }
                      findSeats(FC_Row, FC_Col, EconRow, EconCol, ticketNum, rowNum, ticketType, seatType, airplane);
                      }
                      break;
  
                  case 'A':
                  aisle = (FC_Col / 2);
                  if (airplane[rowNum - 1][aisle - 1] == 0)
                      {
                      airplane[rowNum - 1][aisle - 1] = 1;
                      cout &lt;&lt; "Your seat is " &lt;&lt; (rowNum) &lt;&lt;  "B" &lt;&lt; endl;
                      }
                  else if (airplane[rowNum-1][aisle] == 0)
                      {
                      airplane[rowNum - 1][aisle] = 1;
                      cout &lt;&lt; "Your seat is " &lt;&lt; (rowNum) &lt;&lt;  "C" &lt;&lt; endl;
                      }
                  else
                      {
                      cout &lt;&lt; "There are no aisle seats in that row. Please choose a different row." &lt;&lt; '\n' &lt;&lt; "(use the seating chart to determin where open seats are.)" &lt;&lt; '\n' &lt;&lt; "Row Number:" &lt;&lt;  endl;
                      cin &gt;&gt; rowNum;
                      while (rowNum &gt; (FC_Row))
                      {
                          cout &lt;&lt; "That row is not located in our first class section. choose a row numbered 1-" &lt;&lt; (FC_Row) &lt;&lt; endl;
                          cin &gt;&gt; rowNum;
                      }
                      findSeats(FC_Row, FC_Col, EconRow, EconCol, ticketNum, rowNum, ticketType, seatType, airplane);
                      }
                      break;
  
                  case 'N':
                  col = 0;
                  while (airplane[rowNum - 1][col] == 1)
                      {
                      for (col; airplane[rowNum - 1][col]; col++)
                          {
                          if (col &gt; 3)
                              {
                                  cout &lt;&lt; "There are no available seats in that row. Please choose a different row." &lt;&lt; '\n' &lt;&lt; "(use the seating chart to determin where open seats are.)" &lt;&lt; '\n' &lt;&lt; "Row Number:" &lt;&lt;  endl;
                                  cin &gt;&gt; rowNum;
                              }
                              while (rowNum &gt; (FC_Row))
                              {
                                  cout &lt;&lt; "That row is not located in our first class section. choose a row numbered 1-" &lt;&lt; (FC_Row) &lt;&lt; endl;
                                  cin &gt;&gt; rowNum;
                              }
                              ticketType, seatType, airplane);
                          }
                      }
                      airplane[rowNum - 1][col] = 1;
                      switch (col)
                      {
                          case 0:
                          letterCol = 'A';
                          break;
                          case 1:
                          letterCol = 'B';
                          break;
                          case 2:
                          letterCol = 'C';
                          break;
                          case 3:
                          letterCol = 'D';
                          break;
                      }
                      cout &lt;&lt; "Your seat is " &lt;&lt; (rowNum) &lt;&lt;  "letterCol" &lt;&lt; endl;
  
  
              }
          }
  }
  </code></pre>
  
  <p>removing the function call to itself solved the issue.</p>