Please help me i am stuck in this question for 3 days and i cant move on to others because i cant figure this questoin | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please help me i am stuck in this question for 3 days and i cant move on to others because i cant figure this questoin

Fill in the blanks to declare a template function ''myFunction'', which takes one argument of generic type T and prints its value to the screen. < T> void myFunction( arg) { cout << << endl; } template T friend generic arg class

17th Feb 2017, 2:55 AM
adrian jabonero
adrian jabonero - avatar
5 Answers
+ 7
template <class T> void myFunction(T arg) { cout << arg << endl; }
2nd May 2018, 10:44 AM
abdiwahab jama said
abdiwahab jama said - avatar
+ 1
template <class T> void myFunction (T arg) { cout << arg << endl; }
6th Mar 2017, 10:09 PM
Viacheslav
Viacheslav - avatar
+ 1
wow thanks
4th Jun 2020, 6:00 AM
Waled Moumari
Waled Moumari - avatar
+ 1
youre welcome brother
4th Jun 2020, 6:02 AM
abdiwahab jama said
abdiwahab jama said - avatar
0
template T arg
17th Feb 2017, 3:39 AM
전현수
전현수 - avatar