/** * @author Jane Programmer * @cwid 123 45 678 * @class COSC 2336, Spring 2019 * @ide Visual Studio Community 2017 * @date April 8, 2019 * @assg Assignment 12 * * @description Assignment 12 Binary Search Trees */ #include <cassert> #include <iostream> #include "BinaryTree.hpp" using namespace std; /** main * The main entry point for this program. Execution of this program * will begin with this main function. * * @param argc The command line argument count which is the number of * command line arguments provided by user when they started * the program. * @param argv The command line arguments, an array of character * arrays. * * @returns An int value indicating program exit status. Usually 0 * is returned to indicate normal exit and a non-zero value * is returned to indicate an error condition. */ int main(int argc, char** argv) { // ----------------------------------------------------------------------- cout << "--------------- testing BinaryTree construction ----------------" << endl; BinaryTree t; cout << "<constructor> Size of new empty tree: " << t.size() << endl; cout << t << endl; assert(t.size() == 0); cout << endl; // ----------------------------------------------------------------------- cout << "--------------- testing BinaryTree insertion -------------------" << endl; t.insert(10); cout << "<insert> Inserted into empty tree, size: " << t.size() << endl; cout << t << endl; assert(t.size() == 1); t.insert(3); t.insert(7); t.insert(12); t.insert(15); t.insert(2); cout << "<insert> inserted 5 more items, size: " << t.size() << endl; cout << t << endl; assert(t.size() == 6); cout << endl; // ----------------------------------------------------------------------- cout << "--------------- testing BinaryTree height -------------------" << endl; //cout << "<height> Current tree height: " << t.height() << endl; //assert(t.height() == 3); // increase height by 2 //t.insert(4); //t.insert(5); //cout << "<height> after inserting nodes, height: " << t.height() // << " size: " << t.size() << endl; //cout << t << endl; //assert(t.height() == 5); //assert(t.size() == 8); cout << endl; // ----------------------------------------------------------------------- cout << "--------------- testing BinaryTree clear -------------------" << endl; //t.clear(); //cout << "<clear> after clearing tree, height: " << t.height() // << " size: " << t.size() << endl; //cout << t << endl; //assert(t.size() == 0); //assert(t.height() == 0); cout << endl; // return 0 to indicate successful completion return 0; } C y b e r A t t a c k s “Dr. Amoroso’s fi fth book Cyber Attacks: Protecting National Infrastructure outlines the chal- lenges of protecting our nation’s infrastructure from cyber attack using security techniques established to protect much smalle ...