change the currently being displayed string from an array : <p>I would like to change the current string displayed on the screen by pressing buttons. for example:</p>

<p>I have an array of strings here:</p>

<pre><code>std::string test[] = { "hey", "how", "are", "you" };
</code></pre>

<p>then i have some code here to change the current displayed string from the array:</p>

<pre><code>if (GetAsyncKeyState(VK_LEFT))
    //display one string left from the array
else if (GetAsyncKeyState(VK_RIGHT))
    //display string next to the current one in array

std::cout &lt;&lt; test;
</code></pre>

<p>so what kind of code should i put to the commented parts???</p>
