Public: char name;//choy bor yo'qligini tekshiradi
Download 54 Kb.
|
//4.4-top #include #include #include #include #include using namespace std; class Sinf { public: char name;//choy bor yo'qligini tekshiradi string surname;//choy turini bilish uchun }; int main() { Sinf EL,Kho; char name[][15]={"Azizbek", "Zilola", "Iziza", "Ebdurahmon", "Izida"}; char surname[][15]={"Azizbek", "Zilola", "Aziza", "Nabdurahmon", "Azida"}; char bolasi[][15]={"Azizbek", "Zilola", "Aziza", "Nabdurahmon", "Azida"}; char jinsi[][15]={ "f","m","f","m","f","m"}; char b[]="f"; for(int i=0;i<6;i++) if(strstr(jinsi[i], b)!=NULL) { cout< return 0; } //4.2-top #include #include #include #include using namespace std; class Uchburchak { public: string turi; int raqam; float burchak; float Burchak2; float Burchak3; string yuzi; }; int main() { Modemlar Sal, Pal,Mal,Dal,Kal,Fal,Ral,Tal; Sal.turi="To'g'ri"; Sal.raqam=1; Sal.burchak=30; Sal.Burchak2=60; Sal.Burchak3=90; Sal.yuzi=40; cout<<"3burcha nomi: "< Pal.raqam=2; Pal.burchak=55; Pal.Burchak2=55; Pal.Burchak3=70; Pal.yuzi=123; cout<<"3burchak nomi: "< cout<<"Modemning o'rni "< cout<<"1-burchak"< cout<<"2-burchak"< cout<<"3-burchak"< cout<<"3-burchak"< cout<<"================================="< Mal.raqam=3; Mal.burchak=30; Mal.Burchak2=60; Mal.Burchak3=90; cout<<"3burchak nomi: "< Dal.raqam=4; Dal.burchak=120; Dal.Burchak2=30; Dal.Burchak3=30; cout<<"Modem nomi: "< Kal.raqam=5; Kal.burchak=40; Kal.Burchak2=70; Kal.Burchak3=70; cout<<"3burchak nomi: "< Ral.raqam=6; Ral.burchak=90; Ral.Burchak2=65; Ral.Burchak3=25; cout<<"3burchak nomi: "< Tal.raqam=7; Tal.burchak=90; Tal.Burchak2=50; Tal.Burchak3=40; cout<<"3burchak nomi: "< } Download 54 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling