+ 14
Anybody can fix this code?
Template Class: https://code.sololearn.com/ck2eoy4w3nc1/?ref=app
4 ответов
+ 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);
}
+ 10
Thanks for clear this up for me Mohamed ELomari, Tanay
+ 6
\/.oz Done.....You have given both object a same name.....p1 and P1.....just name it differently it would work.
+ 2
thanks