how to Sort Grade in Array : <p>I want to sort their grades in descending order. I just don't know how using bubble sort..   </p>

<pre><code>void computegrade(string name[], int studentno[], float ave[], int top)
{
if (top==0){
    cout&lt;&lt;"Nothing to display\n";
}
 cout&lt;&lt;"Students are: " &lt;&lt;"\n" &lt;&lt;"\n";
 for (int x=top-1; x&gt;=0; x--)
 {
    cout&lt;&lt;"Student Name: " &lt;&lt;name[x] &lt;&lt;endl;
    cout&lt;&lt;"Student No: " &lt;&lt;studentno[x] &lt;&lt;endl;
    cout&lt;&lt;"Average: " &lt;&lt;ave[x];
}
 }
</code></pre>
