title: Question about using a switch statement
body: <p>First, I realize that from a performance perspective, the design of this switch statement is slow because cout is being called several times in certain cases. That aside, is this style of writing a switch statement not good coding practice. In other words, would it be better to handle each case individually and break or is the fall-through better?</p>
  
  <pre><code>int main(void)
  {
      int number;
      cout &lt;&lt; "Enter a number between 1 and 10 and I will display its Roman numeral equivalent." &lt;&lt; endl
           &lt;&lt; "&gt; ";
      cin &gt;&gt; number;
  
      cout &lt;&lt; "Roman numeral: ";
      switch (number)
      {
          case 3:
              cout &lt;&lt; "I";
          case 2:
              cout &lt;&lt; "I";
          case 1:
              cout &lt;&lt; "I";
              break;
          case 4:
              cout &lt;&lt; "I";
          case 5:
              cout &lt;&lt; "V";
              break;
          case 6:
              cout &lt;&lt; "VI";
              break;
          case 7:
              cout &lt;&lt; "VII";
              break;
          case 8:
              cout &lt;&lt; "VIII";
              break;
          case 9:
              cout &lt;&lt; "I";
          case 10:
              cout &lt;&lt; "X";
              break;
          default:
              cout &lt;&lt; "Error!\nYou did not enter a number between 1 and 10";
      }
  
      cout &lt;&lt; endl;
  
      return 0;
  }
  </code></pre>