Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main ()
- {
- string A[10][5],n;
- char b;
- int k,z,d;
- for (int i=0;i<10;i++){
- cout<<"Vuvedete Ime : "<< i+1 << "chovek" <<endl;
- cin>>A[i][0];
- cout<<"Vuvedete Familiq: "<< i+1 << "chovek" <<endl;
- cin>>A[i][1];
- cout<<"Vuvedete mestorojdenie: "<< i+1 << "chovek" <<endl;
- cin>>A[i][2];
- cout<<"Vuvedete godini : "<< i+1 << "chovek" <<endl;
- cin>>A[i][3];
- }
- do{
- k=0;
- cout << endl;
- cout << "vuvedete izbranoto ot vas mestonahojdenie" <<endl;
- cin>>n;
- for (int i=0;i<10;i++){
- if (A[i][2]==n){
- k=k+1;
- if(k==1){
- cout<<"Rodenite na tova naseleno mqsto sa: "<<endl;
- }
- cout<<"ime: " << A[1][0] << "familiq: " << A[i][1] << "godini : " << A[i][3]<<endl;
- }
- }
- if (k==0){
- cout << "Nqma hora rodeni v tova naseleno mqsto"<<endl;
- }
- else{
- cout << "Ima hora rodeni tama " << k << "chovek/a rodeni tam"<<endl;
- }
- cout <<"Iskate li da vuvedete naseleno mqsto otnovo ? Da/Ne ? : " ;
- cin>>b;
- }while (b=='y');
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement