Ό[L [Μζͺπw·½qπΤ·
iterator begin(); const_iterator begin() const; |
#include <iostream> #include <deque> using namespace std; int main() { deque<char> ob1; deque<char>::iterator p; int i; for(i=0; i<10; i++) ob1.push_back('a'+i); p = ob1.begin(); while(p != ob1.end()) { cout << *p << " "; p++; } return 0; } |
ΐsΚ
a b c d e f g h i j |