64,637
社区成员
发帖
与我相关
我的任务
分享
static int int_array[10]={0,};
generate_n(int_array,10,xrand);
int * count=max_element(int_array,int_array+10);
copy(int_array,int_array+10,ostream_iterator<int>(cout,"\t"));
while(*count){
cout<<"\n"<<endl;
for(int i=0;i<10;i++){
if(int_array[i]==0)
cout<<"\t";
else
cout<<"*\t" ,int_array[i]--;
}
}
cout<<"\nWhat's the hell going on?! \t";