o’zbekiston respublikasi raqamli texnologiyalar vazirligi
Page preview (5 pages)
Scroll down 👇
About "o’zbekiston respublikasi raqamli texnologiyalar vazirligi"
o’zbekiston respublikasi raqamli texnologiyalar vazirligi muhammad al-xorazmiy nomidagi toshkent axborot texnologiyalar universiteti ma’lumotlar tuzilmasi va algoritmlar fanidan 5-amaliy topshiriq toshkent – 2024 18-variant #include #include #include #include using namespace std; struct qush { string nomi; int tartib; double vazni; string rang; }; void sortbyinsertion(vector & arr) { for (size_t i = 1; i = 0 && arr[j].tartib > key.tartib) { // tartib bo'yicha saralash arr[j + 1] = arr[j]; --j; } arr[j + 1] = key; } } void writedatatofile(const string& filename, const vector & arr) { ofstream file(filename); if (file.is_open()) { for (const auto& t : arr) { file qushlar; int n; cout > n; cin.ignore(); for (int i = 0; i > t.tartib; cin.ignore(); cout > t.vazni; cin.ignore(); …
This file contains 7 pages in DOCX format (950.8 KB). To download "o’zbekiston respublikasi raqamli texnologiyalar vazirligi", click the Telegram button on the left.