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
5 Respuestas
+ 7
template <class T>
void myFunction(T arg)
{
cout << arg << endl;
}
+ 1
template <class T>
void myFunction (T arg)
{
cout << arg << endl;
}
+ 1
wow thanks
+ 1
youre welcome brother
0
template
T
arg