Created
February 14, 2009 11:36
-
-
Save marksands/64340 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <iomanip> | |
#include <string> | |
#include "BST.h" | |
#include "SearchableADT.h" | |
void ShowStats( SearchableADT<string>*& dictionary ); | |
int main( int argc, char* argv[] ) | |
{ | |
SearchableADT<string>* dictionary = new BST<string>; | |
ShowStats( SearchableADT<string>*& dictionary ); | |
return 0; | |
} | |
void ShowStats( SearchableADT<string>*& dictionary ) | |
{ | |
cout << "Number of entries: " | |
<< dictionary->numEntries() << endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment