subject

Create MyList. cpp with the following:Constructors and DestructorMyList();Default constructorMyList(const MyList& str);Copy constructor. Constructs a list from a passed in MyList object, e. g. MyList l1(l2);. Performs a deep-copy, where memory separate from the argument object is allocated from the heap, using the keyword new. MyList(const string& str);Constructs a list from a passed in string object, e. g. string username = "FLYNN"; MyList l1(username);.MyList(const char* str);Constructs a list from a passed in string literal, e. g. MyList l1("Red pill, or Blue pill?");~MyList();DestructorMutator svoid push_front(char value);Inserts value at the front of the list. void push_back(char value);Inserts value at the back of the list. void pop_front();Removes the first item from the list. No action on empty list. void pop_back();Removes the last item from the list. No action on empty list. void swap(int i, int j);Swaps the value of the nodes at positions i and j. Program should take no action if i or j is out-of-bounds. void insert_at_pos(int i, char value);Inserts a node with value at position i in the list. Program should abort via an assert statement if i is out-of-bounds. void reverse();Reverses the items in the list.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 20:30
1. for which of the following are you not required to signal beforehand? a. changing lanes b. speeding up c. stopping
Answers: 2
question
Computers and Technology, 24.06.2019 10:10
Which view in a presentation program displays a split window showing the slide in the upper half and a blank space in the lower half?
Answers: 1
question
Computers and Technology, 24.06.2019 10:30
You're programming an infinite loop. what must you include in your code to prevent crashes? in roblox
Answers: 2
question
Computers and Technology, 24.06.2019 22:30
To include a watermark or page border on a word document, you will first need to navigate to the tab. file home insert design
Answers: 1
You know the right answer?
Create MyList. cpp with the following:Constructors and DestructorMyList();Default constructorMyList(...
Questions
question
Computers and Technology, 14.09.2019 04:10
Questions on the website: 13722362