STL de queue operatsiyaların súwretlew ushın CPP kodı




Download 112.45 Kb.
bet3/3
Sana27.10.2022
Hajmi112.45 Kb.
#28351
1   2   3
Bog'liq
Madreymova Guljanat
8 dars 4, tezis Jo\'rayeva Maftuna, 15-17 MB, 1 Teylor formulasi , Tavsiya etilgan mustaqil ish mavzulari bo, Ibrohimov.B, ONA TILI, CONFIDENCE, [Appendix] GPA Conversion Table, Adabiyot o\'qitish metodikasi. Husanboyeva Q. Niyozmetova R., SANOAT MAHSULOTLARINING MATERIAL VA ENERGIYA SARFINI KAMAYTIRISH, Annotatsiya tayyor, Bozor iqtisodiyoti mazmun mohiyati va unga o’tish yo’llari, BMI yuziga (2) 1111112yuz
STL de queue operatsiyaların súwretlew ushın CPP kodı
// Divyansh Mishra --> divyanshmishra101010
#include
#include
std at maydanından paydalanıw ;
// Queueti baspadan shıǵarıw
void print_queue (queue q)
{
queue temp = q;
while (! temp. empty ()) {
cout << temp. front () <<" ";
temp.pop ();
}cout << '\n';}

// Aydawshı kodı


int main ()
{
queue q1;
q1.push (1);
q1.push (2);
q1.push (3);
cout << " Birinshi queue: ";
print_queue (q1);
queue q2;
q2.push (4);
q2.push (5);
q2.push (6 );
cout << " Ekinshi queue: ";
print_queue (q2);
q1. swap (q2);
cout << " Almastırilgandan keyin birinshi náwbette: ";
print_queue (q1);
cout << " Ekinshi queue almastırilgandan keyin: ";
print_queue (q2);
cout<qaytıw 0;
}



Paydalanılǵan ádebiyatlar :
1. http//:wikipedia
2. MA'LUMOTLAR TUZILMASI vA ALGORITMLAR Ullıaliyev B. B. Yusupova Z. Dj.
3.Alfred V. Axo., Djon E. Xopkroft, Djefri D. Ul'man. Struktura dannix i algoritmi//Ucheb.pos., M.: Izd. dom: " Vil'yams", 2000,- 384 s
http://fayllar. org
4. C++ STL Container Fundamentals: Queue | Interview Kickstart
5. Konteyner QUEUE c++ - Search (bing.com)

Download 112.45 Kb.
1   2   3




Download 112.45 Kb.

Bosh sahifa
Aloqalar

    Bosh sahifa



STL de queue operatsiyaların súwretlew ushın CPP kodı

Download 112.45 Kb.