#include<iostream>
using namespace std;
class Person
{
public:
void SoMuchWater()
{
while(1)
{
experience+=3;
cout<<"经验+3!"<<endl;
}
}
int experience;
};
void test()
{
Person Me;
Me.experience=0;
Me.SoMuchWater();
}
int main()
{
test();
system("pause");
return 0;
}
using namespace std;
class Person
{
public:
void SoMuchWater()
{
while(1)
{
experience+=3;
cout<<"经验+3!"<<endl;
}
}
int experience;
};
void test()
{
Person Me;
Me.experience=0;
Me.SoMuchWater();
}
int main()
{
test();
system("pause");
return 0;
}









