//program to insert ten numbers
//and sort them in an order (descending)
#include <iostream>
#include <list>
using namespace std;
int main()
{
list<int> l;
l.push_back(100);
l.push_back(23);
l.push_back(66);
l.push_back(12);
l.push_back(99);
l.push_back(1);
l.push_back(55);
l.push_back(89);
l.push_back(66);
l.push_back(91);
//and sort them in an order (descending)
#include <iostream>
#include <list>
using namespace std;
int main()
{
list<int> l;
l.push_back(100);
l.push_back(23);
l.push_back(66);
l.push_back(12);
l.push_back(99);
l.push_back(1);
l.push_back(55);
l.push_back(89);
l.push_back(66);
l.push_back(91);
No comments:
Post a Comment