Public: string shakli
Download 13.7 Kb.
|
Документ Microsoft Word
27-variant Xasanov Ibrohim bajardi 1. #include using namespace std; class Geometriya { public: string shakli; string muntazamligi; string rangi; string balandligi; string eni; }; int main(){ Geometriya shakl; cout<<"Shakli - "; cin>>shakl.shakli; cout<<"Muntazamligi - "; cin>>shakl.muntazamligi; cout<<"Rangi - "; cin>>shakl.rangi; cout<<"balandligi - "; cin>>shakl.balandligi; cout<<"Eni - "; cin>>shakl.eni; if(shakl.muntazamligi=="ha") shakl.muntazamligi="muntazam"; else shakl.muntazamligi="muntazam emas"; cout<<"Shakli "< } 2.
using namespace std; class Firma { public: string familyasi; string ismi; string address; }; //Abdullayev Abduaziziov Abdualimov int main(){ Firma shaxs[6]; for(int i=1;i<=3;i++) { cout<cin>>shaxs[i].familyasi; cout<cin>>shaxs[i].ismi; cout<cin>>shaxs[i].address; } cout< if(shaxs[i].familyasi==" Abdullayev " shaxs[i].familyasi==" Abduazizov " shaxs[i].familyasi==" Abdualimov ") cout< return 0; } Download 13.7 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling