c++ vector isn't showing any values i inserted : <p>So I am trying to convert string to int and then store the int into vector. But when I do that and i create a for loop to display what I have stored in the vector, all i get is 0000. here is my code:</p>

<pre><code>#include&lt;iostream&gt;
#include&lt;sstream&gt;
#include&lt;vector&gt;
using namespace std;
int main() {
std::string str = "&lt;4: 3 2 1&gt;";
vector&lt;int&gt; vect; 
char c;
int found;
size_t i = 0;
for ( ; i &lt; str.length(); i++ )
{
    if ( isdigit(str[i]) )
    {
       c=str[i];
       found = c-'0';
       cout&lt;&lt;found&lt;&lt;endl;
       vect.push_back(found);
    }
}
for(int j=0;j&lt;vect.size();j++)
{
    cout&lt;&lt;vect[i];
}
   return 0;
}
</code></pre>
