title: using cin and cout in textmate
body: <p>I am usually a Java programmer, and have used textmate for that almost exclusively, but lately I started using C++ with it. but when i use even the most basic programs and incorporate the <em>cin</em> keyword, and run the program, I dont get an oppurtunity to put in anything during runtime and sometimes it inserts random values by itself! for example, if i ran this in textmate:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  int stonetolb(int);
  
  int main() {
  
      using namespace std;
      int stone;
      cout &lt;&lt; "enter the weight in stone";
      cin &gt;&gt; stone;
      int pounds = stonetolb(stone);
      cout &lt;&lt; stone &lt;&lt; "stone = ";
      cout &lt;&lt; pounds &lt;&lt;" pounds.";
      return 0;
  }
  
  int stonetolb(int sts) {
  
          return 14 * sts;
  }
  </code></pre>
  
  <p>I would come out with the output:</p>
  
  <blockquote>
    <p>enter the weight in stone32767stone = 458738 pounds.</p>
  </blockquote>
  
  <p>Why is this happening, and how do I stop it?</p>