title: Identifier not found error on function call
body: <p>I have a program here where I invert the case of an entered string. This is the code in my .cpp file and I am using Visual Studio C++ IDE. I am not sure what I need in a header file or if I need one to make this work.</p>
  
  <p>Error with my function call swapCase. Main does not see swapCase for some reason that I'm not sure of.</p>
  
  <pre><code>#include &lt;cctype&gt;
  #include &lt;iostream&gt;
  #include &lt;conio.h&gt;
  
  using namespace std;
  
  int main()
  {
      char name[30];
      cout&lt;&lt;"Enter a name: ";
      cin.getline(name, 30);
      swapCase(name);
      cout&lt;&lt;"Changed case is: "&lt;&lt; name &lt;&lt;endl;
      _getch();
      return 0;
  }
  
  void swapCase (char* name)
  {
      for(int i=0;name[i];i++)
      {
          if ( name[i] &gt;= 'A' &amp;&amp; name[i] &lt;= 'Z' )
              name[i] += 32; //changing upper to lower
          else if( name[i] &gt;= 'a' &amp;&amp; name[i] &lt;= 'z')
              name[i] -= 32; //changing lower to upper
      }
  }
  </code></pre>
  
  <p>Any other tips for syntax or semantics is appreciated. </p>