student*pt=std;//std是对象数组;
cout<<(*pt+1).score; //score声明为public; × 编译会显示 [Error] no match for 'operator+' (operand types are 'student' and 'int')
√ cout<<(*++pt).score;
student*pt=std;//std是对象数组;
cout<<(*pt+1).score; //score声明为public; × 编译会显示 [Error] no match for 'operator+' (operand types are 'student' and 'int')
√ cout<<(*++pt).score;