Source of test_bst1.cpp


  1: /** @file test_bst1.cpp
  2: Test driver for the BinarySearchTree template class.
  3: Contains just the basic definitions and a default constructor.
  4: @version 1.0
  5: */

  7: #include <iostream>
  8: using namespace std;

 10: //Keyword "export" not yet supported.
 11: //Therefore separate compilation not possible.
 12: #include "bst1.h"
 13: #include "bst1.cpp"

 15: int main()
 16: {
 17:     BinarySearchTree<int> bst_i;
 18:     BinarySearchTree<char> bst_c;
 19:     BinarySearchTree<double> bst_d;
 20: }