#include
#include<stdlib.h>
using namespace std;
int main(){
int x,y,a=0,b=0,c=0,q=1;
cout<<"请输入你要输入的数据个数: ";
cin>>x;
cout<<endl;
cout<<"请输入"<<x<<"个整数: " ;
while(q<=x){
cin>>y;
if(y==0) a++;
else if(y>0) b++;
else c++;
q+=1;
}
cout<<endl;
cout<<"零的个数: " <<a<<endl<<"正数的个数: " <<b<<endl<<"负数的个数: " <<c<<endl;
system("pause");
return 0;
}