/********found********/
#include <iostream.h>
class Myclass
{
int m_Number;
friend class friendC1;
public:
Myclass()
{
m_Number = 5;
}
};
class friendC1
{
public:
int fun(int x)
{
Myclass obj;
return obj.m_Number-x;
}
};
void main()
{
friendC1 obj;
cout<<obj.fun(10)<<endl;
三国纷争
幕布斯6054654
潇潇雨雨
相关分类