设计主函数对浮点数组进行排序

   给定一个浮点数组,对该数组使用任意方法进行排序,并对排序后的数组进行降序输出。
   输入一个一维浮点数数组,并对降序后的数组进行输出。

太过简单,不想回答

#include<iostream>
using namespace std;

int main()
{
    float t[6]={1.5,1.6,0.5,2.5,2.1,1.9};
    sort(t,t+6);
    for(int i=0;i<6;i++)
    cout << " " <<t[i];
    return 0;
}