You are on page 1of 1

/* listT.

h
* class interface for a linked list of strings used in a TV show Database
*
* CS 121.Bolden.........gcc verson 4.8.5 ...........Seth Cram
* 4/18/2020 ......Dell & AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx
* 2.00 GHz......
* Objective:
* store info for a TV show database using a BST in C++
*--------------------------------------------------------------------------
*/

//file guards
#ifndef _LISTT_H_
#define _LISTT_H_

#include <iostream>

using namespace std;

class LinkedList
{
private:
struct node
{
string actorName; // one of the actor names in a specific movie

node *next; // nodePtr that points to the next node


};
typedef node *NodePtr;
NodePtr start; // pointer to front of list
NodePtr end; // pointer to end of list

public:
// Constructor
LinkedList()
{
start = NULL;
end = start;
}

// Looks through list for a keyword


bool SearchList( string keyActorName );

// Put a node at the end of the linked list.


void AddNodeToEnd( string );

// Output the actor names in the list of nodes.


void PrintNodes();

};
#endif

You might also like