Page 1 of 1

Q2: (25 MARKS) Define a function template which accepts two parameters of the same type and displays the biggest. Create

Posted: Sun Jul 03, 2022 10:00 am
by answerhappygod
Q2 25 Marks Define A Function Template Which Accepts Two Parameters Of The Same Type And Displays The Biggest Create 1
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 16 times
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