Home > Back-end >  Where is the mistake? Solving!!!!!!
Where is the mistake? Solving!!!!!!

Time:11-14

#include //preprocessing command
using namespace std;//use the standard namespace STD

//test static member class
The class Test
{
Private:
//data members:
Static int count;//object number

Public:
The Test () {count++; }//constructor, and realize the object count
The static void Show ()
{
Cout & lt; <"There are" & lt; }//display object number
};

[1] count=0;//initialization for static data members

Int main (void)//the main function of the main (void)
{
Test obj1 obj2, obj3;//define objects
The Test: : Show ();//display object number

System (" PAUSE ");//call library function system (), output system message
return 0;//return value of 0, return to the operating system
}
  • Related