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).

Need to create a singly linked list in C++ in which ithas 4 operations that can be done to it which include 1:

// 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 #include using namespace std; #include "Frame.h" #include "Animation.h" int main(void) char response; bool RUNNING = true; Animation A; _CrtsetDbgFlag (_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); while (RUNNING) cout>response; switch (response) -- 0 0 '1':A.Insert Frame(); break; e '2':A. DeleteFrame(); break; e '3':A. Edit Frame(); break; e '4':A. ReportAnimation(); break; e '5': RUNNING = false; break; default:cout #include using namespace std; #include "Frame.h" #include "Animation.h" int main(void) char response; bool RUNNING = true; Animation A; _CrtsetDbgFlag (_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); while (RUNNING) cout>response; switch (response) -- 0 0 '1':A.Insert Frame(); break; e '2':A. DeleteFrame(); break; e '3':A. Edit Frame(); break; e '4':A. ReportAnimation(); break; e '5': RUNNING = false; break; default:cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!