برنامه نویسی
لیست عملکردهای عملکرد – جامعه dev

#include
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
list l = {10, 20, 40,40,40,40,40 ,100, 30,10000,20000,10000};
list l2 = {11, 12, 13};
l.sort(); // Ascending Order
l.sort(greater()); // Descanding Order
l.unique() ; // Works when list is sorted. Print Unique values
l.remove(10);
l.reverse() ; //Reverse the list
for (int val : l)
{
cout << val << endl;
}
}