Question: Given the templated List class declared below, show how to declare a List of floating - point numbers in main ( ) . template class
Given the templated List class declared below, show how to declare a List of floatingpoint numbers in main
template
class List
public:
insert, remove, and append return true if they are successful,
and they return false if they are unsuccessful.
bool insertconst T &x; Insert x just to the right of the fence
bool removeT &x; Remove x from just to the right of fence
bool appendconst T &x; Insert x at the end of the list
void setStart; Place fence at list start
void setEnd; Place fence at list end
void setPosint p; Place fence at position p
void next; move fence one place right
void prev; move fence one place left
bool getValueT &x Returns TRUE if a value is there, and the
value is passed back in x Else return FALSE.
;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
