#include
using namespace std;
struct subscriber
{
char name[20];
double money;
};
int main()
{
int people,count1,count2;
cout<<"请输入捐献者数目:";
cin>>people;
subscriber shuzu[people];
cout<<"请输入捐款者信息(姓名及其款项):\n例如: 小明 5000\n";
for(int i=0;i
cout<<"#"< cin>>shuzu[i].name>>shuzu[i].money;
if(shuzu[i].money>10000)
count1++;
else
count2++;
}
subscriber duhao[count1];
subscriber pingming[count2];
for(int a=0;a
int b=0;
int c=0;
if(shuzu[a].money>10000)
{strcpy(duhao[b].name,shuzu[a].name);
duhao[b].money=shuzu[a].money;
b++;}
else
{strcpy(pingming[c].name,shuzu[a].name);
pingming[c].money=shuzu[a].money;
c++;}
}
cout<<"\n\nGrand Patrons: \n";
if (count1!=0)
{
for(int i=0;i
else
cout<<"none!"<
cout<<"\nPatrons: \n";
if (count2!=0)
{
for(int i=0;i
else
cout<<"none!"<
return 0;
}