Курсовая работа: Списки стеки очереди в C
private:
int inf;
public:
virtual void prin(){cout<<"->class A";}
a(){inf=13;}
~a(){}
};
class b:public fazer{
private:
char inf;
public:
virtual void prin(){cout<<"->class B";}
b(){inf='A';}
~b(){}
};
class c:public fazer{
private:
double inf;
public:
virtual void prin(){cout<<"->class C";}
c(){inf=3.12;}
~c(){}
};
int main()
{
fazer *head=new fazer;
int ch=1;
cout<<"1: Dodatu element class A do stack"<<endl;
cout<<"2: Dodatu element class B do stack"<<endl;