题解 | #排序#
排序
http://www.nowcoder.com/questionTerminal/508f66c6c93d4191ab25151066cb50ef
#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
int main(int argc, char const *argv[])
{
int n;
while (cin>>n)
{
int number[101];
for (int i = 0; i < n; i++)
{
cin>>number[i];
}
sort(number,number+n);
for (int i = 0; i < n; i++)
{
cout<<number[i]<<' ';
}
}
return 0;
}