Public: string ismi


Download 11.96 Kb.
Sana14.11.2020
Hajmi11.96 Kb.
#145386
Bog'liq
Talaba
Hujjat (1), Talaba, yuridik shaxslardan olinadigan foyda soligi boyicha boqimanda qarzlarni bartaraf etish yollari, avtosalonlarning ish jarayonlarini avtomatlashtirish, 4 -amaliy mashg’ulot ishi 13b0c24165191dc78d88e18f91d29e3a, 7 TA XOTIRANI RIVOJLANTIRUVCHI MASHQLAR, 7 TA XOTIRANI RIVOJLANTIRUVCHI MASHQLAR, 2-mavzu dba19f4f11f729f96d5c48089f094a3c, 7-MAVZU, 7-MAVZU, 7-MAVZU, 7-MAVZU, Dasturiy ta’minot va texnik ta’minot swot tahlili, 2 5427034685685369917

Mavzu:Talaba classini yaratish

#include

using namespace std;

class Talaba{

public:

string ismi;



int yoshi;

Talaba (string i,int y){

ismi=i,yoshi=y;

}

void print(){ cout<

}

};

int main(){



Talaba *t[5];

t[0]=new Talaba("Sardor",23);

t[1]=new Talaba("Aziza",22);

t[2]=new Talaba("Botir",21);

t[3]=new Talaba("Shahlo",26);

t[4]=new Talaba("Zokir",24);

t[0]->print();

t[0]->ismi="Sardor";



}

Natija: Sardor 23
Download 11.96 Kb.

Do'stlaringiz bilan baham:




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