#include #include #include #include #define SIZE 5 int menu(); int findslot(); void search(); void del(); void report(); class mobil { public: char name[21]; char fname[21]; char number[21]; mobil::mobil() { name[0]='\0'; fname[0]='\0'; } void enter(int i); char getstate(); void print(int &); void seNul() {name[0]='\0',fname[0]='\0';} void tell(int k); }mob[SIZE]; //=================================== char mobil::getstate() { return name[0]; } //------------------------- void mobil::enter(int i) { clrscr(); char ch; cout<<"| name "<<" | fname |"<<" tell |\n"; cout<<"|"; gotoxy(3,2); cout<>ch; if (ch=='y') { gotoxy(3,2); cin.get(name,20); cin.get(); gotoxy(24,2); cin.get(fname,20); cin.get(); gotoxy(48,2); tell(i); } } else { gotoxy(48,2); tell(i); } } //========================================== void mobil::tell(int k) { int p=0; cin>>number; if (number[0]=='+') { p++; } for (int i=p ; number[i] ; i++) { if (number[i]>='0' && number[i]<='9' ); else { cout<<"Fqt addad Vared konid"; enter(k); } } } //========================================= void mobil::print(int& row) { gotoxy(1,row); cout<<"|"; gotoxy(22,row); cout<<"|"; gotoxy(45,row); cout<<"|"; gotoxy(67,row); cout<<"|"; gotoxy(3,row); cout<>c; } while (c<'1' && c>'5'); return c; } //==================================== int findslot() { int slot; for (slot=0 ;slot>no; for(i=0 ; i>a; }while(a<'1' && a>'2'); switch(a) { case '1': clrscr(); cout<<"enter name search : "; cin.get(name1,19); for(i=0;i>no; for(i=0;i