Declaring local variable as a template type | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Declaring local variable as a template type

I was wondering that can I declare local variable inside the main function template type instead of using int or char or other datatype?? e.g. template < class T > int main { T max, min; // some code here }

9th Jul 2016, 7:32 AM
Shaswat
Shaswat - avatar
1 ответ
+ 1
No.
18th Jul 2016, 7:01 PM
S1xe
S1xe - avatar