#include <iostream>
using namespace std;
struct Person
{
int m_Age;
void plusAge()
{
m_Age++;
}
};
void test()
{
Person p1;
p1.m_Age=10;
p1.plusAge();
cout<<p1.m_Age<<endl;
}
int main() {
//JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
//cout << "Hello JSRUN! \n\n - from C++ ." << endl;
test();
system("pause");
return EXIT_SUCCESS;
}