#include <iostream>
using namespace std;
int main()
{
int a[50], size, i, big;
cout <<"Enter the size of the array: ";
cin >>size;
cout << endl <<"Enter " << size <<" elements in to the array: "<<endl ;
//输入数据
for(i=0; i<size; i++)
cin >>a[i];
big=a[0];
//对数据进行比较判断
for(i=1; i<size; i++)
{
if(big<a[i])
big = a[i];
}
cout << endl <<"Biggest:"<<big <<endl ;
return 0;
}
//本人为初学者,如有错误希望,神多多指教!