22 lines
198 B
C++
22 lines
198 B
C++
|
|
template <class T>
|
|
class Info {
|
|
public:
|
|
void p(T *x);
|
|
};
|
|
|
|
template <class T>
|
|
void Info<T>::p(T *x)
|
|
{
|
|
x->print();
|
|
}
|
|
|
|
class PP {
|
|
public:
|
|
void print();
|
|
};
|
|
|
|
class QQ {
|
|
public:
|
|
void print();
|
|
};
|