Steklar va navbatlar. Ularni mantiqiy tasvirlash va u
#include deque dek1; Dek ustida bajariladigan amallar:
boshidan element kiritish. Push_front()
Oxiridan element kiritish. Push_back()
boshidan element chiqarish. pop_front()
oxiridan element chiqarish. Pop_back()
Empty() – bo’shlikka tekshirish.
Dekka oid misol keltiramiz:
#include #include int main (){
std::deque mydeque (2,100); // two ints with a value of 100
mydeque.push_front (200);
mydeque.push_front (300);
std::cout << "mydeque contains:";
for (std::deque::iterator it = mydeque.begin(); it != mydeque.end(); ++it)
std::cout << ' ' << *it;
std::cout << '\n';
return 0;
}
Natija:
300 200 100 100
Xulosa
FOYDALANILGAN ADABIYOTLAR
1. Mirziyoyev SH.M. Erkin va farovon, demokratik O‗zbekiston davlatini birgalikda barpo etamiz. O‗zbekiston Respublikasi Prezidentining lavozimiga kirishish tantalali marosimiga bag`ishlangan Oliy Majlis palatalarining qo‗shma majlisidagi nutqi.-T.: ―O‗zbekiston‖ NMIU, 2016 -56
2. Mirziyoyev SH.M. Qonun ustuvorligi va inson manfaatlarini ta‘minlash yurt taraqqiyoti va xalq farovonligining garovi. O‗zbekiston Respublikasi Konstitutsiyasi qabul qilinganining 24 yilligiga bag‘ishlangan tantanali marosimdagi ma‘ruza. 2016 yil 7 dekabr -T.: ―O‗zbekiston‖ NMIU, 2016 - 48
3. Mirziyoyev SH.M. Buyuk kelajagimizni mard va olijanob xalqimiz bilan birga quramiz. - T.: ―O‗zbekiston‖ NMIU, 2017. - 488 b.
4. Thomas N. Cormen Algorithms unlocked. Cambridge, Massachusetts. London, 2013.
5. Olifer V.G., Olifer H.A. Kompyuterniye seti. Prinsipi, texnologiyi, protokoli. Uchebnik. -3-e izdaniye. SPb. Piter. 2006g.
6. Yusupbekov N.R., Muxitdinov D.P., Bazarov M.V. Elektron hisoblash mashinalarini kimyo texnologiyasida qo‗llash. —T.: Fan, 2010. -492 b.
7. F.T.Adilov, V.M.Dozorsev, A.N.Yusupbekov. Imitatsionnoye modelirovaniye tipovix texnologicheskix ob‘ektov i kompyuterniy trening navikam upravleniya. —T.: Tafakkur bo'stoni, 2015. -204s.
8. A.N. Yusupbekov, F.T.Adilov, V.M.Dozorsev. Tipik texnologik obyektlarni imitatsion modellashtirish va boshqarish malakali kompyuter treningi. - T.: Toshkent, 2016.-195c.
9. Karl A Astrom, Bjom Wittenmark. Computer-Controlled Systems: Theory and Design, Third Edition. -USA: Dover Publications, 2011 576 p
10. Fritz Klocke. Modeling and Planning of Manufacturing Processes. - Germany Springer, 2016. -658p.