• Toshkent 2022 Mavzu: Konteyner adapterlari. Stack, Navbat(queue) va Ustivor navbat(priority_queue) 32-variant
  • Swd008-L2 guruh talabasi Yo’ldoshev Furqatjon




    Download 241.06 Kb.
    Sana26.10.2022
    Hajmi241.06 Kb.
    #28134
    Bog'liq
    das4
    1666285525 (1)

    O’ZBEKISTON RESPUBLIKASI AXBOROT TEXNOLOGIYALARI VA KOMMUNIKATSIYALARINI RIVOJLANTIRISH VAZIRLIGI MUHAMMAD AL-XORAZMIY NOMIDAGI TOSHKENT AXBOROT TEXNOLOGIYALARI UNIVERSITETI


    Dasturlash 2 fani bo’yicha

    4-labaratoriya ishi
    Bajardi SWD008-L2 guruh talabasi
    Yo’ldoshev Furqatjon
    Tekshirdi: Gulyamova Dilfuza
    Toshkent 2022
    Mavzu: Konteyner adapterlari. Stack, Navbat(queue) va
    Ustivor navbat(priority_queue)
    32-variant

    #include


    #include
    using namespace std;
    int main()
    {
    int n,cht=0;
    cout<<"Navbatga nechta son kiritasiz: ";
    cin>>n;
    cout<<"Sonlarni kiriting:\n";
    double mx,x,r;
    queue q,q2;
    for(int i=0; i{
    cin>>x;
    q.push(x);
    q2.push(x);
    }
    mx=q2.front();
    while(!q2.empty())
    {
    if(mxmx=q2.front();
    q2.pop();
    }
    r=1.0*1/mx;
    while(!q.empty())
    {
    if(r==q.front())
    cht++;
    q.pop();
    }
    cout<<"Max elementiga teskari elementlar soni: "<}






    Download 241.06 Kb.




    Download 241.06 Kb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Swd008-L2 guruh talabasi Yo’ldoshev Furqatjon

    Download 241.06 Kb.