Public: char name;//choy bor yo'qligini tekshiradi


Download 54 Kb.
Sana28.12.2022
Hajmi54 Kb.
#1012628


//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<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: "<cout<<"3burchak o'rni "<cout<<"1-burchak"<cout<<"2-burchak"<cout<<"3-burchak"<cout<<"3-burchak"<cout<<"================================="<cout<<"================================="<Pal.turi="Teng yonli";
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<<"================================="<cout<<"================================="<Mal.turi="To'g'ri";


Mal.raqam=3;
Mal.burchak=30;
Mal.Burchak2=60;
Mal.Burchak3=90;
cout<<"3burchak nomi: "<cout<<"Modemning o'rni "<cout<<"1-burchak"<cout<<"2-burchak"<cout<<"3-burchak"<cout<<"3-burchak"<cout<<"================================="<cout<<"================================="<Dal.turi="Teng yonli";
Dal.raqam=4;
Dal.burchak=120;
Dal.Burchak2=30;
Dal.Burchak3=30;
cout<<"Modem nomi: "<cout<<"Modemning o'rni "<cout<<"1-burchak"<cout<<"2-burchak"<cout<<"3-burchak"<cout<<"3-burchak"<cout<<"================================="<cout<<"================================="<Kal.turi="Teng yonli";
Kal.raqam=5;
Kal.burchak=40;
Kal.Burchak2=70;
Kal.Burchak3=70;
cout<<"3burchak nomi: "<cout<<"Modemning o'rni "<cout<<"1-burchak"<cout<<"2-burchak"<cout<<"3-burchak"<cout<<"3-burchak"<cout<<"================================="<cout<<"================================="<Ral.turi="To'g'ri";
Ral.raqam=6;
Ral.burchak=90;
Ral.Burchak2=65;
Ral.Burchak3=25;
cout<<"3burchak nomi: "<cout<<"Modemning o'rni "<cout<<"1-burchak"<cout<<"2-burchak"<cout<<"3-burchak"<cout<<"3-burchak"<cout<<"================================="<cout<<"================================="<Tal.turi="To'g'ri";
Tal.raqam=7;
Tal.burchak=90;
Tal.Burchak2=50;
Tal.Burchak3=40;
cout<<"3burchak nomi: "<cout<<"Modemning o'rni "<cout<<"1-burchak"<cout<<"2-burchak"<cout<<"3-burchak"<cout<<"3-burchak"<cout<<"================================="<cout<<"================================="<return 0;

}

Download 54 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling