Programming > STUDY GUIDE > University of Colorado, Boulder - CSCI 2270MovieTree (All)
#include "MovieTree.hpp" #include <iostream> #include <string> #include<fstream> #include <sstream> using namespace std; // MovieNode: node struct that will be stored in the MovieTree BST Movie... Node* getMovieNode(int rank, string t, int y, float r) { MovieNode* nn = new MovieNode; nn->title = t; nn->ranking = rank; nn->year = y; nn->rating = r; return nn; } MovieTree::MovieTree() { //write your code root = nullptr; } void destroySubTree(MovieNode* currNode){ if(currNode != nullptr){ destroySubTree(currNode->left); destroySubTree(currNode->right); delete currNode [Show More]
Last updated: 1 year ago
Preview 1 out of 4 pages
Connected school, study & course
About the document
Uploaded On
Mar 28, 2021
Number of pages
4
Written in
This document has been written for:
Uploaded
Mar 28, 2021
Downloads
0
Views
37
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·