Jadval funksiyani Fure qatoriga yoyish. Fure koeffitsientlarini hisoblash. Qator hadlari sonini tanlash Ishdan maqsad


Download 413.24 Kb.
bet9/9
Sana16.06.2023
Hajmi413.24 Kb.
#1518113
1   2   3   4   5   6   7   8   9
Bog'liq
13 - 18 - lab algoritm

TOPSHIRIQLAR
9. n ta 2 xonali son kiritilsin. Keyin 1 ta 3 xonali son kiritlganda shu kiritilgan songa yaqin sonni toping.
intmain()
{
queue gquiz;
gquiz.push(10);
gquiz.push(20);
gquiz.push(30);
cout << "The queue gquiz is : ";
showq(gquiz);
cout << "\ngquiz.size() : "<< gquiz.size();
cout << "\ngquiz.front() : "<< gquiz.front();
cout << "\ngquiz.back() : "<< gquiz.back();
cout << "\ngquiz.pop() : ";
gquiz.pop();
showq(gquiz);
// We can also use front and back as
// iterators to traverse through the queue
count<<"Using iterators : ";
for(autoi = gquiz.front(); i != gquiz.back(); i++)
{
count<< i <<" ";
}
return0;
}



Xulosa:
Misol uchun metrik bo'shliqda n nuqtalari berilgan, ular orasidagi eng kichik masofa bo'lgan bir necha nuqtani topish masalasini ko’rib chiqaylik. Evklid tekisligidagi eng yaqin nuqtalarning vazifasi geometrik algoritmlarning hisoblash murakkabligidan muntazam ravishda o'rganilishi kerak bo'lgan birinchi geometrik vazifalardan biri.
Download 413.24 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9




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