Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
481 B
6
Indexable
Never
#pragma once

struct Movie
{
    int code;
    char name[40];
    int year;
    char genre[30];
  };

class MovieList
{
	   private:
		   struct MovieNode
		   {
			   Movie movie;
			   struct MovieNode *next;
		   };
		   MovieNode *head;
	   public:
		   MovieList();
		   ~MovieList();
		   void appendNode(Movie mov);
		   void insertNode(Movie mov);
       void showDetails(Movie mov);
		   void deleteNode(Movie mov);
		   void displayList();
};