Mail Archives: djgpp/1997/10/26/18:17:07
Chtulhu (I DOT Vighetto AT avigliana DOT alpcom DOT it) writes:
> I woul try STL programming.
> Tthere's some problem with DJGPP?
> Which (free) implementatio of STL works best with our compiler and
> where is downloadable?
Try the STL that comes with the C++ components of DJGPP. They should show
up in %DJDIR%/lang/cxx. Just compile something like:
#include <iostream.h>
#include <list.h> // An STL header
int main (void) {
list<int> z;
list::iterator j;
z.push_front(3);
z.push_front(7);
z.push_front(12);
j=z.begin();
cout << *j << endl;
j++;
cout << *j << endl;
j++;
cout << *j << endl;
return 0;
}
--
.*. Where feelings are concerned, answers are rarely simple [GeneDeWeese]
-() < When I go to the theater, I always go straight to the "bag and mix"
`*' bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
- Raw text -