<p>atoi() is giving me this error:</p>

<pre><code>
error C2664: 'atoi' : cannot convert parameter 1 from 'char' to 'const char *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
</code></pre>

<p>from this line:
int pid = atoi( token.at(0) );
where token is a vector</p>

<p>how can i go around this?</p>

You'll have to create a string:
```
```
int pid = atoi(std::string(1, token.at(0)).c_str());
```
```
... assuming that token is a std::vector of char, and using std::string's constructor that accepts a single character (and the number of that character that the string will contain, one in this case).