Skip to content

Instantly share code, notes, and snippets.

@austinglaser
Last active December 11, 2015 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save austinglaser/4675600 to your computer and use it in GitHub Desktop.
Save austinglaser/4675600 to your computer and use it in GitHub Desktop.
An alternate main for binary_search_tree_driver.cpp
void printUsage(char call[]) {
cout << " Usage: " << call << " [--retrograde]" << endl;
}
int main (int argc, char* argv[])
{
if (argc == 2 && strcmp(argv[1], "--retrograde") == 0) RETROGRADE_MODE = 1;
else if (argc != 1) {
printUsage(argv[0]);
return -1;
}
UTFrameworkInit;
}
@johnsogg
Copy link

thanks, i incorporated this to the new version of the driver and will push it later this evening. I really appreciate this kind of stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment