title: Why does std::getline(cin, Number) give a "No matching function for call" error?
body: <p>I wrote a program so the user inputs a number and the program outputs its binary representation.</p>
  
  <p>I get this error:</p>
  
  <blockquote>
    <p>No matching function for call to `getline(std::istream&amp;, unsigned int&amp;)'</p>
  </blockquote>
  
  <p>How can I solve this?</p>
  
  <p>Also, it outputs:</p>
  
  <pre><code>0
  0
  0
  0
  </code></pre>
  
  <p>...when it should output the right value for the input.</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
      int Number;
      cin &gt;&gt; Number;
      bool Binary[sizeof(int) * CHAR_BIT];
      for (unsigned int i = 0; i &lt; sizeof(int) * CHAR_BIT; i++)
          Binary[(sizeof(int) * CHAR_BIT - 1) - i] = Number &amp; (1 &lt;&lt; i);
  
      for (unsigned int i = 0; i &lt; sizeof(int); i++)
          std::cout &lt;&lt; Binary[i] &lt;&lt; std::endl;
  
      system("pause");
      return 0;
  }
  </code></pre>