#include <iostream>
#include <list>
using namespace std;
int main()
{
int arr[] = {1,2,3,4,5,6,7,8,9};
list<int> ist(arr,arr+9);
list<int>::const_reverse_iterator iter = ist.rbegin(), end = ist.rend();
if(iter == end)
{
cout<<"The list is empty!"<<endl;;
}
cout<<"........."<<endl;
while(iter!=end);
{
cout<<iter<<" ";
iter++;
}
cout<<endl;
return 0;
}
when you run, it can't output what you had wished
under g++;
ubuntu can't input chinese,............