using namespace std;
Class A
{
Public:
Static int count;
(A)
{
count++;
}
Int switchcount ()
{
return count;
};
};
Int A: : count=0;
Int main ()
{
A, A.
cout
cout
Excuse me this static count what pay attention to? Will their
CodePudding user response:
Class what is a static member function in there, banging bam,CodePudding user response:
Static members only outside the class initialization,