#include
#include
#include
#include
#include // for reverse
using namespace std;
int main()
{
string s("asdfg");
list list1(s.begin(), s.end());
list::iterator i;
for (i = list1.begin(); i != list1.end(); ++i)
cout << *i;
reverse(list1.begin(), list1.end());
for (i = list1.begin(); i != list1.end(); ++i)
cout << *i;
return 0;
}
asdfggfdsa"