Iteratorlardan foydalanib list konteyneri ustida amallar bajaring


Download 26.34 Kb.
Sana19.06.2023
Hajmi26.34 Kb.
#1624843
Bog'liq
Iteratorlardan foydalanib list konteyneri ustida amallar bajaring


Iteratorlardan foydalanib list konteyneri ustida amallar bajaring
#include
#include
using namespace std;
int main()
{
liste{2,3,4,5,6,7,8,9};
list::iterator it;
for(it=e.begin();it!=e.end();it++){
cout<<*it<<" ";
}
int k;
cin>>k;
for(it=e.begin();it!=e.end();it++){
if(*it>k){
cout<<*it<<" ";
}
}
}

Download 26.34 Kb.

Do'stlaringiz bilan baham:




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