忍不住说两句,关于海归或美国找工作,academia# Biology - 生物学
h*b
1 楼
template class A
{
public:
A(){}
};
template class B
{
public:
B() {};
/* add something here to make A a friend */
};
Referring to the sample code shown above, which one of the following
declares every specialization of A to be a friend class of the
corresponding specialization of B?
哪个对?我试了都可以。。谢谢
template friend class A;
friend class A;
{
public:
A(){}
};
template
{
public:
B() {};
/* add something here to make A a friend */
};
Referring to the sample code shown above, which one of the following
declares every specialization of A to be a friend class of the
corresponding specialization of B?
哪个对?我试了都可以。。谢谢
template friend class A
friend class A