title: atoi() - from char to int
body: <pre><code>char c;
  int array[10][10];
  while( !plik.eof())
  {
      getline( plik, text );
      int string_l=text.length(); 
      character_controler=false;
      for(int i=0; i&lt;string_l; ++i)
      {
          c=napis.at(i);
          if(c==' ') continue;
          else if(character_controler==false)
          {
              array[0][nood]=0;
              cout&lt;&lt;"nood: "&lt;&lt;nood&lt;&lt; "next nood "&lt;&lt;c&lt;&lt;endl;
              array[1][nood]=atoi(c); // there is a problem
              character_controler=true;
          }
          else if(c==',') character_controler=false;
      }   
      ++nood;
  }
  </code></pre>
  
  <p>I have no idea why <code>atoi()</code> doesn't work. The compiler error is:</p>
  
  <pre><code>invalid conversion from `char` to `const char*`
  </code></pre>
  
  <p>I need to convert <code>c</code> into int.</p>