Very basic C++ program issue - Invalid operands to binary expression
<p>I just started teaching myself C++ on the Mac, and I have run into some issues. </p>

<p>I have written some code that allows the user to enter a number and when they hit enter, the number will be returned to the user. </p>

<p>Xcode will absolutely not have it though. Every time I try to run my code, it says that there is an issue with the <code>cin&gt;&gt; thisisanumber;</code> code. </p>

<p>The error comes up and says </p>

<p><code>Invalid operands to binary expression.</code> <strong>Error is on line 10.</strong></p>

<p>What am I doing wrong?</p>

<pre><code>#include &lt;iostream&gt;

using namespace std;

int main()
{
   int thisisanumber();

   cout &lt;&lt; "Please enter a number: ";
   cin  &gt;&gt; thisisanumber;
   cin.ignore();
   cout &lt;&lt; "You entered"&lt;&lt; thisisanumber &lt;&lt;"\n";
   cin.get();
}
</code></pre>
