Question: Need to create a singly linked list in C++ in which it has 4 operations that can be done to it which include 1: Insert
Need to create a singly linked list in C++ in which it has 4 operations that can be done to it which include
1: Insert a Frame to the beginning of the linked list
2: Delete a Frame at the end of the linked list
3: Edit any of the Frames
4: Display the Animation to show the list of Frames in the linked list
where Frames are the nodes (Frame is the name given to the nodes) and Animation is the linked list itself (name given to the linked list).


// Frame.h #pragma once //Animation.h #pragma once class Animation char* animationName; Frame* frames; class Frame { char* frameName; Frame* pNext; public: Frame(); Frame(); char* & Get FrameName() { return frameName; } Frame*& GetpNext() { return pNext; } public: Animation(); Animation(); void Insert Frame(); void Edit Frame(); void Delete Frame(); void ReportAnimation(); //a331.cpp #define _CRT_SECURE NO WARNINGS #define CRTDBG MAP_ALLOC // need this to get the line identification 1/_CrtsetDbgFlag (_CRTDBG_ALLOC_MEM_DF|_CRTDBG_LEAK_CHECK_DF); // in main, after local declarations //NB must be in debug build #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
