title: atoi() not working as expected
body: <pre><code>#include &lt;vector&gt;
  #include &lt;cstdlib&gt;
  #include &lt;iostream&gt;
  #include &lt;algorithm&gt;
  #include &lt;string&gt;
  #include &lt;fstream&gt;
  #include &lt;stdlib.h&gt;
  using namespace std;
  •
  • //main func declaration etc...
  •
  //Vectors for storing information from file
  vector&lt;string&gt; include;
  vector&lt;string&gt; exclude;
  string temp; //for storing whatever the stream is on
  int len = atoi(puzzle_file &gt;&gt; temp); //first pos
  int width = atoi(puzzle_file &gt;&gt; temp); //second pos
  </code></pre>
  
  <p>The above code is supposed to read in a file and store the numbers in the corresponding ints. I'm getting an error that says "no matching function for call to 'atoi'", even though I have #include &lt;\cstdlib> and #include &lt;\stdlib.h> in my file header. Unsure of where to go from here. Did some research on stackoverflow and other forums, couldn't find anything that really helped me out. Any advice? Thanks</p>