Axo’ guruh talabasi Sanoyev Shahriyorning Ma’lumotlar tuzilmasi fanidan amaliy ishi


Download 29.45 Kb.
Sana14.12.2022
Hajmi29.45 Kb.
#1004145
Bog'liq
Shaxriyor MT

710-21-AXo’ guruh talabasi Sanoyev Shahriyorning Ma’lumotlar tuzilmasi fanidan amaliy ishi


Dekning o‘rtasidagi element yoki elementlarni o‘chiring.

#include


#include

using namespace std;


int main()


{
deque mydeque{ 1, 2, 3, 4, 5 ,6,7,8,9};

for (auto it = mydeque.begin(); it != mydeque.end(); ++it)


cout << ' ' << *it;


cout<mydeque.erase(mydeque.begin()+mydeque.size()/2);
for (auto it= mydeque.begin(); it != mydeque.end(); ++it)
cout<<' '<<*it;
return 0;
}

Download 29.45 Kb.

Do'stlaringiz bilan baham:




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