#include <iostream>
#include <list>

using namespace std;

int main() 
{
    list<char> list1;
    for (char c1='a';c1<='z';++c1)
    {
        list1.push_back(c1);
    }

    list<char>::const_iterator iter1;
    for (iter1 = list1.begin();iter1 != list1.end();++iter1)
    {
        cout << *iter1 << endl;
    }

    system("pause");
    return 0;
}

a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
请按任意键继续. . .