#include
#include
#include
#include // For reverse
using namespace std;
int main()
{
string x[5] = {"asdf", "1234", "2345", "6789", "0000"};
list list1(&x[0], &x[5]);
reverse(list1.begin(), list1.end());
list::iterator i;
cout.precision(10);
for (i = list1.begin(); i != list1.end(); ++i)
cout << *i << endl;
cout << endl;
return 0;
}
0000
6789
2345
1234
asdf