Руководство по стандартной библиотеке шаблонов STL

       

int main


#include <iostream.h> #include <stl.h>

int main () { stack<deque<int> > s; s.push (42); s.push (101); s.push (69); while (!s.empty ()) { cout << s.top () << endl; s.pop (); } return 0; }



#include <iostream.h> #include <stl.h>

int main () { stack<list<int> > s; s.push (42); s.push (101); s.push (69); while (!s.empty ()) { cout << s.top () << endl; s.pop (); } return 0; }


Содержание раздела