/*USE TEMPLATE FUNCTION TO SORT ROLL NOS OF CLASS 'STUDENT'.*/ #include #include int std[100]; int n; template void rollsort(T std[],int n) { for(int i=0;i void swap(A &b,A &c) { A tmp= b; b=c; c=tmp; } void main() { clrscr(); cout<<"\nEnter the total number of students: "; cin>>n; cout<<"\nEnter the roll nos: "; for(int j=0;j>std[j]; rollsort(std,n); cout<<"\nSorted roll no sequence is: "; for(int i=0;i