713-21-guruh talabasi Jahongirov Jonibek
2-variant
2. Ro'yhat tozalansin.
#include
#include
using namespace std;
int main(){
list myList = { 10, 20, 30, 40, 50 };
cout<<"Dastlabki royhat: ";
for (auto i = myList.begin(); i != myList.end(); ++i)
cout << ' ' << *i;
myList.clear();
cout << endl;
for (auto i = myList.begin(); i!= myList.end(); ++i)
cout << ' ' << *i;
cout<< "Tozalangan royhat: ";
return 0;
}
Do'stlaringiz bilan baham: |