Create a template class List that contain a dynamic array of template type and an integer variable of size. Set the size of the array in constructor. Include insert, show and Find Max and Find Min functions in the class. Find Max and Find Min functions return the maximum/minimum value stored in the array. Define all the functions outside the class. Test the class for at least two datatypes. In c++

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter13: Overloading And Templates
Section: Chapter Questions
Problem 15PE
icon
Related questions
Question
Create a template class List that contain a dynamic array of template type and an integer variable of size. Set the size of the array in constructor. Include insert, show and Find Max and Find Min functions in the class. Find Max and Find Min functions return the maximum/minimum value stored in the array. Define all the functions outside the class. Test the class for at least two datatypes. In c++
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Introduction to Template
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning