Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct Vznosu
- {
- char name[20];
- double money;
- };
- int main()
- {
- cout<<"vvedite kolichestvo vznosov ";
- int kolvo,i,y,z,h;
- z=0;
- h=0;
- cin>>kolvo;
- Vznosu *vznosu = new Vznosu[kolvo];
- for (i=0; i<kolvo; i++)
- {
- cin.get();
- cout<<"\nVvedite imya ";
- cin.get(vznosu[i].name, 20);
- cout<<"\nVvedite summu ";
- cin>>vznosu[i].money;
- }
- cout<<"eti lyudi yavlayutsa pochetnumi chlenami obshestva:\n";
- for (y=0; y<kolvo; y++)
- {
- if (vznosu[y].money>10000)
- {
- z++;
- cout<<vznosu[y].name<<"\n";
- }
- }
- if (z==0)
- cout<<"\nNET\n";
- cout<<"sponsoru:\n";
- for (y=0; y<kolvo; y++)
- if (vznosu[y].money<10000)
- {
- h++;
- cout<<vznosu[y].name<<"\n";
- }
- if (h==0)
- cout<<"\nvznosov net";
- cin>>y;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement