trying to follow Bucky tutorials
<p>While following <a href="http://www.youtube.com/watch?v=OVfUq2DPKKg" rel="nofollow">this Youtube tutorial</a> (see the relevant code below) I get the following error:</p>

<blockquote>
  <p>error line 6<br>
  error: expected constructor destructor or type conversion before'('</p>
</blockquote>

<p>What might cause this error and how do I solve it?</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;cmath&gt;
#include &lt;stdlib.h&gt;
#include &lt;time.h&gt;
void myfun(int);//using own function
myfun(8);//pow(4.0,10.0)
using namespace std;
int main()
{
    double num1;
   srand(time(0));// to get a true random number
    double num2;
    num1 = pow(3.0, 9.0);//2 to the power of 4
    cout &lt;&lt; num1 &lt;&lt;endl;
    num2 = rand() %100;//random number out of 100
    cout &lt;&lt; "\nrandom number = " &lt;&lt; num2 &lt;&lt; endl ;

    return 0;
}
void myfun(int x)
{

    using namespace std;
    cout &lt;&lt; "my favourite number is " &lt;&lt; x &lt;&lt; endl;
}
</code></pre>
