//Copyright (c) 1996 A. Michael Berman. All Rights Reserved. //This code is from "Data Structures via C++: Objects by Evolution", to be //published by Oxford University Press USA. Permission is hearby granted to //use this code for any educational, non-commercial purpose, provided this //notice remains intact. //A. Michael Berman, Rowan College of New Jersey, berman@rowan.edu // dslib.h: standard include file for "Data Structures via C++" #ifndef __MB_DSLIB_INCLUDED__ #define __MB_DSLIB_INCLUDED__ 1 #include "compid.h" #include #include #ifndef __MB_COMPILER_DEFINES_BOOL__ enum bool {false, true}; #endif #ifdef __MB_SIMULATE_BORLAND_RANDOM__ #include #include /* inline void randomize() { struct timeval t; gettimeofday(&t); srandom(int(t.tv_usec)); } inline int random(int limit) { return random()%limit; } */ #endif #endif