#include<iostream>
using namespace std;
class Person
{
char *name=new char[20];//错误显示:error C2258: illegal pure syntax, must be '= 0' 还有error C2252: 'name' : pure specifier can only be specified for functions
char *sex;
int age;
public:
Person(char *nam,char *se,int ag)
{
name=nam;
sex=se;
age=ag;
}
void show()
{
cout<<name<<sex<<age<<endl;
}
~Person()
{
delete [20]name
};
int main()
{
Person s("小奔","男",19);
s.show();
}