Using namespace std; struct Talaba


Download 0.76 Mb.
bet3/3
Sana13.02.2020
Hajmi0.76 Mb.
1   2   3

using namespace std;

struct Talaba

{

char ismi[100];



char familiyasi[100];

char sharifi[100];

char guruhi[100];

char fakulteti[100];

char viloyati[100];

char tumani[100];

char oqish_shakli[100];

int tugilgan_sanasi;

int stipendiyasi;

int kursi;

};

istream& operator>>(istream&cin, Talaba& t){



cout<<"Talabaning ismini kiriting:"; cin>>t.ismi;

cout<<"Talabaning familiyasini kiriting:"; cin>>t.familiyasi;

cout<<"Talabaning sharifini kiriting:"; cin>>t.sharifi;

cout<<"Talabaning guruhini kiriting:"; cin>>t.guruhi;

cout<<"Talabaning fakultetini kiriting:"; cin>>t.fakulteti;

cout<<"Talabaning viloyatini kiriting:"; cin>>t.viloyati;

cout<<"Talabaning tumanini kiriting:"; cin>>t.tumani;

cout<<"Talabaning o'qish shaklini kiriting:"; cin>>t.oqish_shakli;

cout<<"Talabaning tug'ilgan sanasini kiriting:"; cin>>t.tugilgan_sanasi;

cout<<"Talabaning stipendiyasini kiriting:"; cin>>t.stipendiyasi;

cout<<"Talabaning kursini kiriting:"; cin>>t.kursi;

cout<<"____________________________"<

return cin;

}ostream& operator<<(ostream& cout, Talaba& t){

cout<<"Talabaning ismi:\t\t\t"<

cout<<"Talaba familiyasi:\t\t\t"<

cout<<"Talaba sharifi:\t\t\t"<

cout<<"Talaba guruhi:\t\t\t"<

cout<<"Talaba fakulteti:\t\t\t"<

cout<<"Talaba viloyati:\t\t\t"<

cout<<"Talaba tumani:\t\t\t"<

cout<<"Talaba o'qish shakli:\t\t\t"<

cout<<"Talaba tug'ilgan sanasi:\t\t\t"<

cout<<"Talaba stipendiyasi:\t\t\t"<

cout<<"Talaba kursi:\t\t\t"<

cout<<"_____________________________"<

return cout;}

int main(){ Talaba p; cin>>p;



cout<

}





Do'stlaringiz bilan baham:
1   2   3


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