class student{public: int age;};第一种形式:student stu;stu.age=10;第二种形式:student* pstu = new student;pstu->age=10;delete pstu;