Гурух Хабилов Икромжон


Download 212.11 Kb.
Sana10.12.2020
Hajmi212.11 Kb.
#162937
Bog'liq
Labarotoriya 4


714-18 гурух

Хабилов Икромжон.

Лабаротория 4.

8. “Aiko”, “Aim”, “Acer”, “Akai”, “benq ”, “Chigo”, “cytron”, “daewoo”, “luxor ” ma’lumotdan foydalangan xolda ASCII kodlari topilsin , ular asosida kalit aniqlansin, xesh jadvallar tuzilsin indexlar ishtirokida
#include

#include


int main()

{

setlocale(LC_ALL, "");


std::string s = "Aiko.Aim.Acer.Akai.benq.Chigo.cytron.daewoo.luxor ";

std::cout << s << std::endl;


for (size_t i = 0; i < s.size(); ++i)

{

if (s[i] >= 48 && s[i] <= 57)



std::cout << s[i];

else


std::cout << '<' << (int)(s[i] & 255) << '>';

}

std::endl(std::cout);



return 0;

}

Натижа




Download 212.11 Kb.

Do'stlaringiz bilan baham:




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