'pow' Was Not Declared In This Scope
<pre><code>#include &lt;iostream&gt;
#include &lt;string.h&gt;

using namespace std;

int main()
{
    int e=0;
    int b=0;
    cout&lt;&lt;"Enter Exponent";
    cin&gt;&gt;e;
    cout&lt;&lt;"Enter Base";
    cin&gt;&gt;b;
    pow(e, b);
    cout&lt;&lt;"Power:"&lt;&lt;e;
    return 0;
}

void pow(int e, int b)
{
  int t=1;
  while(b==t)
  {
    e=e*b;
    t++;
  }
}
</code></pre>

<blockquote>
  <p>ulaga.cpp|29|error: 'pow' was not declared in this scope</p>
</blockquote>

<p>Can any one explain why this error occurred?</p>
