3.3.3 Borland C++ 4.5 DOS- and WINDOWS-programs

For programs written in Borland C++ 4.5 all information given in sections 3.3.1 and 3.3.2 can be applied but there are some further points:

DOS-example (analogous for Windows):


#define __MINMAX_DEFINED        // use STL's generic min and max templates
#define __USE_STL               // exclude BC++'s redundant operator definitions
#include <classlib\defs.h>      // use BC++4.5 bool definition

// STL include files
#include "vector.h"

// C++ standard include files
#include <stdlib.h>
#include <cstring.h>
#include <classlib\alloctr.h>
#include <owl\bitset.h>
#include <iostream.h>
void main (void)
{
  vector<int> v(1, 4);
  cout << v[0];
}

Continue with section 4.1

Back to index


Johannes Weidl (J.Weidl@infosys.tuwien.ac.at) - Apr 16, 1996