Compare two static arrays
<p>I have an issue how to implement to compare two static arrays, ie.</p>

<pre><code>string bufferNames[]={"apple","orange","banana","pomegranate","pear"};
string bufferPictures[] = {"apple.bmp","orange.bmp","banana.bmp","pomegranate.bmp","pear.bmp"};
</code></pre>

<p>Each item in the bufferNames presents the choice that to someone has been given, when the picture from the bufferPictures has been loaded onto the screen. So, if I for example get orange.bmp using rand() function that iterates through that list, how can I get the same one corresponding element orange and two other random not correct elements. Any help would be appreciated. </p>

<p>Thanks in advance.</p>

<p>P.S. If further breaking in of the problem is needed, just say it so.</p>
