+ 14
10th Jun 2018, 2:12 AM
ZΛRTHΛИ
ZΛRTHΛИ - avatar
4 Antworten
+ 6
you're making two instances of class MyClass with same name, you can make change like this: int main() { MyClass<std::string> p1("Jona"); MyClass<int> p2(100, 25); }
10th Jun 2018, 2:58 AM
MO ELomari
MO ELomari - avatar
+ 10
Thanks for clear this up for me Mohamed ELomari, Tanay
10th Jun 2018, 3:25 AM
ZΛRTHΛИ
ZΛRTHΛИ - avatar
+ 6
\/.oz Done.....You have given both object a same name.....p1 and P1.....just name it differently it would work.
10th Jun 2018, 2:55 AM
Tanay
Tanay - avatar
+ 2
thanks
12th Jun 2018, 3:20 PM
Abhishek mishra