array of void pointer
<p>I'm trying to use strtok to break up a string and push into a stack. could be integers or '+' or '-' signs. i have traced the problem to the push function, and void ** a is a void pointer to array.</p>

<p>It prints out garbage value when i did the  <code>cout &lt;&lt; getVP(a) &lt;&lt; " " ;</code></p>

<p>my getVP function</p>

<pre><code>int Stack::getVP (void* a) const
{
return *(static_cast &lt;char *&gt;(a));
}
</code></pre>

<p>Please don't ask me why i'm not using <code>std::Stack</code>. I'm not tasked to do so yeah got to do it in array.</p>

<p>edited: made some changes to my codes, right now when i store it in void * temp, it doesn't print out the right input. anyone?</p>
