O’zbekiston Respublikasi Axborot Texnologiyalari


Download 409.85 Kb.
Sana02.01.2022
Hajmi409.85 Kb.
#190077
Bog'liq
NORQULOV RAMAZON


O’zbekiston Respublikasi Axborot Texnologiyalari
va Kommunikatsiyalarini rivojlantirish Vazirligi
Muhammad Al-Xorazmiy nomidagi
Toshkent Axborot Texnologiyalari Universiteti
Dasturiy injenering fakulteti DASTURLASH

fanidan


10-LABARATORIYA ISHI


Bajardi:Norqulov Ramazon
Guruh: 312-20

#include

#include

using namespace std;

class Talaba {

public:


string F, I, O, tekshiruv;

void Malumot(){

cout<

}

friend Talaba qidiruv(Talaba k);



};

Talaba qidiruv(Talaba k){

if( k.F == "Hakimova" or k.I == "Hilola" or k.O == "Abdumutalib qizi" or k.F == "Vafoqulova" or k.I == "Gavhar" or k.O == "To'lqin qizi" or k.F == "Obloqulova" or k.I == "Maftuna" or k.O == "Ikromjon qizi" )

{k.tekshiruv = "Ushbu qiz talaba 413 - 20 guruh talabasi!";

}

else {


k.tekshiruv = "Ushbu talaba yo o'gil bola yoki 413 - 20 guruhdan emas!";

}

return k;



}

int main(){

Talaba t[4];

for( int i = 0; i < 4; i ++ )

{

cout<

cout<<" Familiyasi: "; getline(cin,t[i].F); cout<<"\n\a";

cout<<" Ismi: "; getline(cin,t[i].I); cout<<"\n\a";

cout<<" Sharifi: "; getline(cin,t[i].O); cout<<"\n\a";

}

cout<

for( int i = 0; i < 4; i ++)

t[i].Malumot();

cout<<"\n\n\a";

for(int i=0; i<4; i++){

t[i]=qidiruv(t[i]);

t[i].Malumot();



}

cout<<"\n\n\n\n\a\tTuzuvchi:\t\tHilola Hakimova :)";



}

#include

#include

using namespace std;

int main()

{

char A[] = " bo'lsin! kuningiz alaykum";



char B[] = "Assalamu talabalar hayrli";

cout<<" Bizga 2 ta satr berilgan: "<

cout<<" 1 - satr: "<

cout<<" 2 - satr: "<

string k = B;

k.erase(9,17);

k.insert(9,A,18,8);

k.insert(17,B,8,11);

k.insert(27,A,9,10);

k.insert(36,B,18,7);

k.insert(43,A,0,9);

cout<<"\n\n\n\tDastur natijasi: "<

cout<

cout<<"\n\n\n\n\a\tTuzuvchi:\t\tHilola Hakimova :)";



return 0;

}

#include

#include

#include

using namespace std;

int main(){

string c;

string s, s1;

size_t index;

cout<<" Satrni kiriting: "<

getline(cin, s);

cout<<" Qidirilayotgan belgini kiriting: "<

getline(cin,c);

cout<<" Almashtiriladigan belgini kiriting (o'chirishni istasangiz probelni bosing!) :"<

getline(cin,s1);

index = s.find(c);

while (index < s.length()){

s.replace( index, c.length(), s1);

index = s.find(c, index + s1.length());

}

cout<

system("pause");

return 0;



}


Download 409.85 Kb.

Do'stlaringiz bilan baham:




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