 2007-07-26 22:38
	    2007-07-26 22:38
   2007-07-26 22:50
	    2007-07-26 22:50
   2007-07-26 23:02
	    2007-07-26 23:02
   2007-07-27 08:31
	    2007-07-27 08:31
  #include<iostream>
#include<string>
using namespace std;
int main()
{
    int a,b,c,d,e,f,temp=0;
    int t[100]; 
    cout << "please input the number of the data : ";
    while(cin>>a)
    {
        for(f=0;f<100;f++)
            t[f]=0;
        for(b=0;b<a;b++)
            cin >> t[b];
        for(c=0;c<a;c++)
        {
            for(d=0;d<a-c;d++)
            {
                if(t[d]>t[d+1])
                {
                    temp=t[d];
                    t[d]=t[d+1];
                    t[d+1]=temp;
                }
            }
        }
        cout << "the answer is : ";
        for(e=1;e<=a;e++)
            cout << t[e]<<" ";
        cout << endl <<"pelase input the number of the next date : ";
    }
    return 0;
}
 2007-07-27 09:39
	    2007-07-27 09:39
   2007-07-30 13:10
	    2007-07-30 13:10
   2007-07-30 13:36
	    2007-07-30 13:36