title: 'pow' Was Not Declared In This Scope
body: <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>
  
  <p>Here is the error I received:</p>
  
  <pre><code>ulaga.cpp|29|error: 'pow' was not declared in this scope
  </code></pre>
  
  <p>Can any one explain why this error occurred?</p>