반응형
deque
#include<iostream> #include<deque> using namespace std; int main() { deque< float >coll; int i; for( i = 1 ; i <= 5 ; ++i ){ coll.push_front(i*1.1); } deque< float >::iterator it; for( it = coll.begin(); it != coll.end() ; it++ ){ cout << *it << endl; } }
반응형