maximum and minimum value?
<p>I have made a matrix using vector and iterator, how can I find maximum and minimum value from it. It is something like:  </p>

<pre><code>vector&lt;int&gt; &gt; matrixes(10);
typedef std::vector&lt;std::vector&lt;int&gt; &gt;::iterator it;

it rows = matrixes.begin();
 if (rows-&gt;size() == 10)
++rows;
rows-&gt;push_back(res);

}

for(size_t q=0; q &lt; matrixes.size(); ++q)
{
    for(size_t r=0; q &lt; matrixes[q].size(); ++r)
    cout &lt;&lt; matrixes[q][r] &lt;&lt; " ";
   cout &lt;&lt; endl;
}
</code></pre>

<p>I want to find maximum and minimum value through it, how is it possible?</p>
