[求助]请问这个题目是否正确啊
#include "iostream.h"
class parent
{int a;
public:
parent(int ta)
{a=ta;
}
void showf()
{cout<<a<<endl;
}
};
class son:public parent
{int b;
public:
son(int ta,int tb):parent(ta)
{b=tb;
}
void shows()
{cout<<b<<endl;
{
};
void main()
{parent *pf;
son *ps;
ps=(son *)pf;
}