Got problem converting string to upper case letters
<p>Using following console application i am converting each string to uppercase letters. But string value in output remains unchanged. what I am doing wrong here. Also any help on doing this efficiently would be appreciated.Thanks for your help.</p>

<pre><code>int main()
{    

    vector&lt;string&gt; svec, svec_out;
    string word;
    int run;

    cout &lt;&lt; "Press 0 to quit giving input string" &lt;&lt; endl;

    while(1)
    {
        cin &gt;&gt; word;
        svec.push_back(word);

        cin &gt;&gt; run;
        if (!run)
            break;
    }

    cout &lt;&lt; "converting to upper case... " &lt;&lt; endl;

    int i;
    for (i = 0; i!=svec.size(); ++i)
    {
        word = svec[i];
        for (string::size_type j=0; j &lt; word.size(); ++j)
        {
            toupper(word[j]);
        }

        svec_out.push_back(word);
    }


    for ( i = 0; i&lt;svec_out.size(); i++)
        cout &lt;&lt; svec_out[i] &lt;&lt; endl;

    return 0;
}
</code></pre>
