0

Compiler doesn't understand template<class T>, what I must do?

https://code.sololearn.com/ccfHZ6s126Ny/?ref=app

29th Jan 2020, 6:16 PM
Uber
2 odpowiedzi
+ 3
you need to put the template statement right above each appropriate function. Your missing the point of templates by doing like you've done in your code. This will help:- http://www.cplusplus.com/doc/tutorial/functions2/
29th Jan 2020, 7:40 PM
rodwynnejones
rodwynnejones - avatar
0
Thank you, code works
30th Jan 2020, 4:42 AM
Uber