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;
}
Натижа
Do'stlaringiz bilan baham: |