- Q2 25 Marks Define A Function Template Which Accepts Two Parameters Of The Same Type And Displays The Biggest Create 1 (21.87 KiB) Viewed 15 times
Q2: (25 MARKS) Define a function template which accepts two parameters of the same type and displays the biggest. Create
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Q2: (25 MARKS) Define a function template which accepts two parameters of the same type and displays the biggest. Create
Q2: (25 MARKS) Define a function template which accepts two parameters of the same type and displays the biggest. Create a programmer-defined class (do not re-use Student defined on Q1). On your class: Include only a default constructor, two data members and any other member/s necessary so that the class can be used with the function template. Write a main() function that demonstrates your function template works using any two built-in types, and the class you defined. Save the file as big Template.cpp