You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cout<<"The number of players is: "<<Player::get_number_players()<<endl;
10
+
}
11
+
12
+
intmain(int argc, char **argv)
13
+
{
14
+
display_number_players();
15
+
16
+
Player george("George");
17
+
display_number_players();
18
+
19
+
{
20
+
Player kornel("Kornel");
21
+
display_number_players(); //object kornel will get out of the scope as the {} block ends and gets deleted automatically because it happens on the stack
0 commit comments