In my print
method, I want to print the name of my Team class ("Bar").
Is there a way to get the name of a class without sending it as an argument?
I want to build inside the ostream cout << operator something like
"Team name : **function that gets the name ("Bar" in this case) **"
int main ()
{
cout << "hello"<<endl;
Team Bar;
for (int i = 0; i < 2; i++)
{
Bar.addPlayer();
}
cout << Bar; //here I want to print the name of the Team ("Bar") without having a string Bar as a parameter
Bar.manage();
cout << Bar;
return 0;
}