[求助]为什么这段程序不能通过编译啊
#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;
}
编译有错