.i need to know how to rank the students after sorting them in decreasing order of their total...any suggestions..plz reply..
what do you mean by "rank them" ? assign a number like the first one in the list is 1, the second one is 2, and the third (last) one is 3? That should be easy to do, just use the loop counter as shown in RED below.
for(int i=0;i<n;i++)
{
cout<<"\n\n\t "<<rollno[i]<<" \t\t"<<Total[i]<<" \t\t"<<Grade[i] << " Rank: " << i+1;
if (Grade[i]=='E')
{cout<<"\t FAIL" ;}